sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas Surasani <vas...@gmail.com>
Subject Sqoop error
Date Fri, 23 Dec 2011 15:01:39 GMT
Hi,
I have installed hadoop and sqoop tarballs from Cloudera. I get the
following error when I type Sqoop command

[har@podapp01 sqoop-1.3.0-cdh3u2]$ sqoop help
- Hide quoted text -
ls: /var/opt/har/har/hadoop-0.20.2/hadoop-core*.jar: No such file or
directory
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/util/PlatformName
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.util.PlatformName
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: org.apache.hadoop.util.PlatformName.
Program will exit.
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.hadoop.conf.Configuration.getInstances(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/List;
        at com.cloudera.sqoop.tool.SqoopTool.loadPlugins(SqoopTool.java:141)
        at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:211)
        at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:230)
        at com.cloudera.sqoop.Sqoop.main(Sqoop.java:239)
[har@podapp01 sqoop-1.3.0-cdh3u2]$ echo $SQOOP_HOME
/var/opt/hadr/hadr/sqoop-1.3.0-cdh3u2
[har@podgridapp01 sqoop-1.3.0-cdh3u2]$ echo $HADOOP_HOME
/var/opt/har/har/hadoop-0.20.2
[hadr@podgridapp01 sqoop-1.3.0-cdh3u2]$ echo $CLASSPATH

[hadr@podgridapp01 sqoop-1.3.0-cdh3u2]$ echo JAVA_HOME
JAVA_HOME
[hadr@podgridapp01 sqoop-1.3.0-cdh3u2]$ echo $JAVA_HOME
/etc/alternatives/java_sdk


Regards,
Shek

Mime
View raw message