2016-05-18 8 views
0

ich eine cloudera Cluster Version 5.3.x haben und wenn Sqoop Client ausgeführt Befehl folgenden mitSqoop zu verbinden versucht sogar Garn, wenn sie auf MRV1 läuft

sqoop import --connect jdbc:mysql://HOST/myapplication --username myuser --direct -table=mytable -m 1 --hive-import --append --hive-table myapplication.tableimp --target-dir /user/hive/warehouse/myapplication/tableimp 

Es befindet sich auf der folgenden Anweisung Schleifen. Es scheint, dass wir versuchen, eine Verbindung zum Garn herzustellen, obwohl wir nur MRv1 auf unserem Cluster haben.

INFO client.RMProxy: Connecting to ResourceManager at node/<ipaddress>:8032 
INFO ipc.Client: Retrying connect to server: node/<ipaddress>:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS) 
INFO ipc.Client: Retrying connect to server: node/<ipaddress>:8032. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS) 

habe ich versucht, die folgende, die documented auf cloudera ist, aber immer noch keine Veränderung.

alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.mr1 

Ich sollte wohl erwähnen, dass ich an der Stelle/etc/sqoop2 auf dieser VM eine tomcat-conf.mr1 Datei nicht sehen.

+0

Habe ich es /opt/cloudera/parcels/CDH/etc/sqoop2/tomcat-conf.mr1 zu ... noch Hilfe tut. – user2023507

Antwort

0

hadoop-conf zeigte auf Garnkonfiguration. Mit dem folgenden Befehl wurde die Mapreduce-Konfiguration geändert.

[[email protected] bin]# alternatives --config hadoop-conf 

There are 4 programs which provide 'hadoop-conf'. 

    Selection Command 

----------------------------------------------- 

*+ 1   /etc/hadoop/conf.cloudera.yarn 

    2   /etc/hadoop/conf.cloudera.hdfs 

    3   /etc/hadoop/conf.cloudera.mapreduce 

    4   /opt/cloudera/parcels/CDH-5.1.3-1.cdh5.1.3.p0.12/etc/hadoop/conf.empty 


Enter to keep the current selection[+], or type selection number: 3