Hi, I'm trying to use sqoop2 on my CDH 4.3.0-1.cdh4.3.0.p0.22 which was
installed by CM4.3
I can see there is dir sqoop2 on /opt/cloudera/parcels/CDH/lib and also
can see the execute file sqoop-server&sqoop2
in /opt/cloudera/parcels/CDH/bin
But when I use the command like : " /opt/cloudera/parcels/CDH/bin/sqoop2-server
start " then " /opt/cloudera/parcels/CDH/bin/sqoop2 " and " show version
--all"
it return the error following below:
Exception has occurred during processing command
Exception: com.sun.jersey.api.client.UniformInterfaceException Message: GET
http://localhost:12000/sqoop/version returned a response status of 404 Not
Found
It seems like I never really start the server, but I don't know where can I
configure the related file
Does anyone have the complete tutorial for installing sqoop2 with CM4.3??
Btw,
Here is the output when I issue the start command:
---
arvin@hadoop1:/opt/cloudera/parcels/CDH/bin$ sudo ./sqoop2-server start
Sqoop home directory:
/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/sqoop2
Setting SQOOP_HTTP_PORT: 12000
Setting SQOOP_ADMIN_PORT: 12001
Using CATALINA_OPTS: -Xmx1024m
Adding to CATALINA_OPTS: -Dsqoop.http.port=12000 -Dsqoop.admin.port=12001
Using CATALINA_BASE:
/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/bin/../lib/sqoop2/sqoop-server-0.20
Using CATALINA_HOME:
/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/bigtop-tomcat
Using CATALINA_TMPDIR:
/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/bin/../lib/sqoop2/sqoop-server-0.20/temp
Using JRE_HOME: /usr/lib/jvm/j2sdk1.6-oracle
Using CLASSPATH:
/opt/cloudera/parcels/CDH-4.3.0-1.cdh4.3.0.p0.22/lib/bigtop-tomcat/bin/bootstrap.jar
and here is the logs in /var/log/sqoop2
---
Nov 14, 2013 8:27:34 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.apache.sqoop.server.ServerInitializer
java.lang.RuntimeException: Failure in server initialization
at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:51)
at
org.apache.sqoop.server.ServerInitializer.contextInitialized(ServerInitializer.java:36)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.sqoop.common.SqoopException: CORE_0001:Invalid
confiugration directory - Environment variable sqoop.config.dir is not set.
at
org.apache.sqoop.core.SqoopConfiguration.initialize(SqoopConfiguration.java:92)
at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:44)
... 25 more
Nov 14, 2013 8:27:34 PM org.apache.catalina.core.StandardContext
listenerStop
SEVERE: Exception sending context destroyed event to listener instance of
class org.apache.sqoop.server.ServerInitializer
java.lang.NullPointerException
at
org.apache.sqoop.framework.FrameworkManager.destroy(FrameworkManager.java:299)
at org.apache.sqoop.core.SqoopServer.destroy(SqoopServer.java:34)
at
org.apache.sqoop.server.ServerInitializer.contextDestroyed(ServerInitializer.java:32)
at
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.