Score:0

Error: Could not find or load main class org.apache.sqoop.Sqoop

sa flag

Could not find or load main class org.apache.sqoop.Sqoop

While installing sqoop-1.4.7.bin__hadoop-2.6.0 pseudo mode my bashrc is :

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
#export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/
#export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
export HADOOP_HOME=/home/hadoop/hadoop
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
export HIVE_HOME=/home/hadoop/hive/apache-hive-3.1.2-bin
export HIVE_CONF_DIR="$HIVE_HOME/conf"
export HIVE_CLASSPATH="$HIVE_CONF_DIR"
export PATH=$PATH:$HIVE_HOME/bin
export HADOOP_USER_CLASSPATH_FIRST=true
export SQOOP_HOME="/home/hadoop/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0"
export SQOOP_CONF_DIR="$SQOOP_HOME/conf"
export SQOOP_CLASSPATH="$SQOOP_CONF_DIR"
export PATH=$PATH:$SQOOP_HOME/bin
export HBASE_HOME="/home/hadoop/hbase/hbase-2.3.5"
export HBASE_CONF_DIR="$HBASE_HOME/conf"
export HBASE_CLASSPATH="$HBASE_CONF_DIR"
export PATH=$PATH:$HBASE_HOME/bin
#export PIG_HOME="/home/hadoop/pig/pig-0.17.0"
#export PATH=$PATH:$PIG_HOME/bin
export PIG_HOME="/home/hadoop/pig/pig-0.17.0"
export PIG_CONF_DIR="$PIG_HOME/conf"
export PIG_CLASSPATH="$PIG_CONF_DIR"
export PATH="$PIG_HOME/bin:$PATH"
export FLUME_HOME="/home/hadoop/flume/apache-flume-1.9.0-bin"
export FLUME_CONF_DIR="$FLUME_HOME/conf"
export FLUME_CLASSPATH="$FLUME_CONF_DIR"
export PATH="$FLUME_HOME/bin:$PATH"

And my sqoop env is:

export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH=$PATH:$JAVA_HOME/bin
#Set path to where bin/hadoop is available
export HADOOP_HOME=/home/hadoop/hadoop
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
#set the path for HBASE/HIVE/SQOOP is available
export HBASE_HOME="/home/hadoop/hbase/hbase-2.3.5"
export HIVE_HOME="/home/hadoop/hive/apache-hive-3.1.2-bin"
export SQOOP_HOME="/home/hadoop/sqoop/sqoop-1.4.7.bin"
export ZOOKEEPER_HOME="/zookeeper/apache-zookeeper-3.6.3-bin"
export PATH=$PATH:$SQOOP_HOME/bin

When I issue sqoop-verion I am getting this error:

/home/hadoop/sqoop/sqoop-1.4.7.bin__hadoop-2.6.0/conf/sqoop-env.sh: line 19: /home/hadoop/hadoop,: No such file or directory
Warning: /home/hadoop/sqoop/sqoop-1.4.7.bin/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /home/hadoop/sqoop/sqoop-1.4.7.bin/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
Warning: /zookeeper/apache-zookeeper-3.6.3-bin does not exist! Accumulo imports will fail.
Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
**Error: Could not find or load main class org.apache.sqoop.Sqoop**
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.