connection issue while pulling data from mysql to hadoop -
when m trying pull data mysql hadoop m writing command
sudo import --connect jdbc:mysql://localhost/naresh --table marks --username root --password root
i m getting error
13/09/04 17:00:43 warn tool.basesqooptool: setting password on command-line insecure. consider using -p instead. 13/09/04 17:00:43 info manager.mysqlmanager: preparing use mysql streaming resultset. 13/09/04 17:00:43 info tool.codegentool: beginning code generation 13/09/04 17:00:43 info manager.sqlmanager: executing sql statement: select t.* `marks` t limit 1 13/09/04 17:00:43 info manager.sqlmanager: executing sql statement: select t.* `marks` t limit 1 13/09/04 17:00:43 info orm.compilationmanager: hadoop_home /usr/lib/hadoop 13/09/04 17:00:43 info orm.compilationmanager: found hadoop core jar at: /usr/lib/hadoop/hadoop-core.jar 13/09/04 17:00:44 info orm.compilationmanager: writing jar file: /tmp/sqoop-nareshkumar/compile/b66caff07ef718bd6ff55ff7744d20a6/marks.jar 13/09/04 17:00:44 warn manager.mysqlmanager: looks importing mysql. 13/09/04 17:00:44 warn manager.mysqlmanager: transfer can faster! use --direct 13/09/04 17:00:44 warn manager.mysqlmanager: option exercise mysql-specific fast path. 13/09/04 17:00:44 info manager.mysqlmanager: setting 0 datetime behavior converttonull (mysql) 13/09/04 17:00:44 info mapreduce.importjobbase: beginning import of marks 13/09/04 17:00:48 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 0 time(s). 13/09/04 17:00:49 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 1 time(s). 13/09/04 17:00:50 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 2 time(s). 13/09/04 17:00:51 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 3 time(s). 13/09/04 17:00:52 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 4 time(s). 13/09/04 17:00:53 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 5 time(s). 13/09/04 17:00:54 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 6 time(s). 13/09/04 17:00:55 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 7 time(s). 13/09/04 17:00:56 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 8 time(s). 13/09/04 17:00:57 info ipc.client: retrying connect server: localhost/127.0.0.1:9001. tried 9 time(s). 13/09/04 17:00:57 error security.usergroupinformation: priviledgedactionexception as:nareshkumar (auth:simple) cause:java.net.connectexception: call localhost/127.0.0.1:9001 failed on connection exception: java.net.connectexception: connection refused 13/09/04 17:00:57 error tool.importtool: encountered ioexception running import job: java.net.connectexception: call localhost/127.0.0.1:9001 failed on connection exception: java.net.connectexception: connection refused @ org.apache.hadoop.ipc.client.wrapexception(client.java:1179) @ org.apache.hadoop.ipc.client.call(client.java:1155) @ org.apache.hadoop.ipc.rpc$invoker.invoke(rpc.java:226) @ org.apache.hadoop.mapred.$proxy0.getprotocolversion(unknown source) @ org.apache.hadoop.ipc.rpc.getproxy(rpc.java:398) @ org.apache.hadoop.ipc.rpc.getproxy(rpc.java:384) @ org.apache.hadoop.mapred.jobclient.createrpcproxy(jobclient.java:511) @ org.apache.hadoop.mapred.jobclient.init(jobclient.java:496) @ org.apache.hadoop.mapred.jobclient.<init>(jobclient.java:479) @ org.apache.hadoop.mapreduce.job$1.run(job.java:539) @ java.security.accesscontroller.doprivileged(native method) @ javax.security.auth.subject.doas(subject.java:415) @ org.apache.hadoop.security.usergroupinformation.doas(usergroupinformation.java:1278) @ org.apache.hadoop.mapreduce.job.connect(job.java:537) @ org.apache.hadoop.mapreduce.job.submit(job.java:525) @ org.apache.hadoop.mapreduce.job.waitforcompletion(job.java:556) @ com.cloudera.sqoop.mapreduce.importjobbase.runjob(importjobbase.java:143) @ com.cloudera.sqoop.mapreduce.importjobbase.runimport(importjobbase.java:203) @ com.cloudera.sqoop.manager.sqlmanager.importtable(sqlmanager.java:464) @ com.cloudera.sqoop.manager.mysqlmanager.importtable(mysqlmanager.java:101) @ com.cloudera.sqoop.tool.importtool.importtable(importtool.java:382) @ com.cloudera.sqoop.tool.importtool.run(importtool.java:455) @ com.cloudera.sqoop.sqoop.run(sqoop.java:146) @ org.apache.hadoop.util.toolrunner.run(toolrunner.java:65) @ com.cloudera.sqoop.sqoop.runsqoop(sqoop.java:182) @ com.cloudera.sqoop.sqoop.runtool(sqoop.java:221) @ com.cloudera.sqoop.sqoop.runtool(sqoop.java:230) @ com.cloudera.sqoop.sqoop.main(sqoop.java:239) caused by: java.net.connectexception: connection refused @ sun.nio.ch.socketchannelimpl.checkconnect(native method) @ sun.nio.ch.socketchannelimpl.finishconnect(socketchannelimpl.java:708) @ org.apache.hadoop.net.socketiowithtimeout.connect(socketiowithtimeout.java:206) @ org.apache.hadoop.net.netutils.connect(netutils.java:519) @ org.apache.hadoop.net.netutils.connect(netutils.java:484) @ org.apache.hadoop.ipc.client$connection.setupconnection(client.java:468) @ org.apache.hadoop.ipc.client$connection.setupiostreams(client.java:575) @ org.apache.hadoop.ipc.client$connection.access$2300(client.java:212) @ org.apache.hadoop.ipc.client.getconnection(client.java:1292) @ org.apache.hadoop.ipc.client.call(client.java:1121) ... 26 more
i tried searching , making changes in core-site.xml , mapred-site.xml
please me out in advance
i think issue of port no. hope below command
sudo import --connect jdbc:mysql://localhost:3306/naresh --table marks --username root --password root
Comments
Post a Comment