Reputation: 381
I am using hadoop 2.6.0,now i am trying sqoop-1.4.5.bin__hadoop-2.0.4-alpha.tar.gz.I am getting sqoop version using
sqoop version
2016-10-19 16:11:21,722 [myid:] - INFO [main:Sqoop@92] - Running Sqoop version: 1.4.5
Sqoop 1.4.5
but if i am trying any sqoop command it's giving the following exception,
sqoop list-tables --connect jdbc:mysql://localhost/test --username root --password hadoop
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.addDeprecations([Lorg/apache/hadoop/conf/Configuration$DeprecationDelta;)V
I copied mysql connector jar to sqoop/lib also.I am not able to find the cause.anybody have any idea please share me how to solve this.
Upvotes: 1
Views: 903
Reputation: 21
$ps -ef|grep -i manager
You can find whether node manager working or not
$ps -fu hdfs
It will show whether namenode datanode and secondary namenode working or not
$ps -fu yarn
It will show node manager and resource manager working or not
If all working in the sense sqoop will work..
Upvotes: 1
Reputation: 81
You should globalize sqoop path by adding into bashrc file. Steps given below.
Open terminal
Open. bashrc file
sudo gedit ~/. bashrc
SQOOP_HOME = /absolute/path/of/sqoop
PATH = $PATH:$SQOOP_HOME/bin
bash
Upvotes: 0
Reputation: 1
Upvotes: 0
Reputation: 1
You need to create a user in MySQL
CREATE USER 'usrname'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'usrname'@'%' WITH GRANT OPTION;
Now you can run the query
sqoop list-tables --connect jdbc:mysql://192.168.1.18/mysql --username
usrname -P
Upvotes: 0
Reputation: 826
sqoop list-tables --connect jdbc:mysql://localhost:3306/databasename
This is the correct query for listing all the tables in a particular database, the port number for mysql by default is 3306.
Upvotes: 1