import sqoop to hdfs error Application failed 2 times due to AM Container

22 Views Asked by At

enter image description here

I try to import data using sqoop cmd :

sqoop import --connect "jdbc:sqlserver://192.168.26.8:1717;databasename=VMC" -- table contact -m 1 --username sa --password 123456
1

There are 1 best solutions below

0
OneCricketeer On
/bin/bash: /bin/java: No such file or directory

You need to install Java correctly on all nodes in the cluster, including setting JAVA_HOME in the hadoop-env.sh file