Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

JAVA_HOME not set

JAVA_HOME not set

Explorer

Hi Team,

 

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/

system@(IP ADDRESS):1521:xe

–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.

 

Thank you.