I am new to sqoop. I try to Import the data of the table present in Oracle database to hdfs by executing the below query:-
sudo bin/sqoop import –connect jdbc:oracle:thin:system/
–username system -P –table system.emp –columns “ID” –target-dir /
sqoopoutput1 -m 1
But I am getting error as 'JAVA_HOME is not set and could not be found'. Please assist how to resolve.