yum list avaliable hadoop\*
yum list installed
yum repolist
repo is in /etc/yum.repos.d
yum install hadoop-client
yum install hive-jdbc #beeline
yum install hive # or hive.noarch?
yum install sqoop
Here are some general instructions I found internally. Note: You can change the path to match the OS release and CDH version of the client you need.
On the external host download the CDH repo file to the /etc/yum.repos.d/ directory:
curl -O https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
Edit the base URL in the cloudera-cdh5.repo file to install the CDH version (otherwise it will install the latest). For example, to install the 5.7.1 hadoop-client, update the baseurl to:
baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.7.1/
Install the hadoop-client rpm:
$ yum clean all $ yum install hadoop-client
(See http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.7.1/RPMS/x86_64/)
In Cloudera Manager navigate to, HDFS -> "Actions" drop down -> "Download Client Configuration" (this will download a zip file called hdfs-clientconfig.zip).
Move the zip file over to the external host and unzip it.
Copy all the unzipped configuration files to /etc/hadoop/conf. Example:
$ cp * /etc/hadoop/conf
Run hadoop commands. Example:
$ sudo -u hdfs hadoop fs -ls
Note: You can also download the RPM file and install locally if desired.
/usr/lib/sqoop/lib # add jars
https://stackoverflow.com/questions/22741183/sqoop-could-not-load-mysql-driver-exception