Member since
05-19-2016
216
Posts
20
Kudos Received
4
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
4188 | 05-29-2018 11:56 PM | |
7021 | 07-06-2017 02:50 AM | |
3765 | 10-09-2016 12:51 AM | |
3530 | 05-13-2016 04:17 AM |
05-05-2016
12:10 PM
@Christian Guegi: Now, I did a fresh install and can run list-databases and list-tables command but not import. I do have jdbc driver inside of lib folder in same directory as that of workflow.xml but do I need to reference to this jar inside lib folder from any of my files?
... View more
05-05-2016
07:36 AM
@Artem Ervits: But should it not have been included automatically rather than I having to add it manually? I have installed YARN before and never really had to add it manually.
... View more
05-05-2016
07:35 AM
I do not have spark installed. In fact I thought that adding the service could possibly solve the issue? I believe spark thing is coming in the picture because it is in the list of auxiliary services. Shall I consider removing it from there?
... View more
05-05-2016
07:29 AM
1 Kudo
In the logs, I get this classNotFoundException .NodeManager fails in a couple of seconds when started. Rest of the YARN components are working fine except for Nodemanager. YARN service check times out and never completes. YARN logs: 2016-05-05 12:44:24,449 INFO event.AsyncDispatcher (AsyncDispatcher.java:register(208)) - Registering 2016-05-05 12:44:24,733 WARN containermanager.AuxServices (AuxServices.java:serviceInit(130)) - The Auxilurary Service named 'mapreduce_shuffle' in the configuration is for class org.apache.hadoop.mapred.ShuffleHandler which has a name of 'httpshuffle'. Because these are not the same tools trying to send ServiceData and read Service Meta Data may have issues unless the refer to the name in the config.
2016-05-05 12:44:24,734 INFO containermanager.AuxServices (AuxServices.java:addService(72)) - Adding auxiliary service httpshuffle, "mapreduce_shuffle"
2016-05-05 12:44:24,834 FATAL containermanager.AuxServices (AuxServices.java:serviceInit(145)) - Failed to initialize spark_shuffle
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2227)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.AuxServices.serviceInit(AuxServices.java:121)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.serviceInit(ContainerManagerImpl.java:245)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:291)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:537)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:585)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2195)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2219)
... 10 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.spark.network.yarn.YarnShuffleService not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2193)
... 11 more You can check the complete logs here: http://warehouse.swtched.com:8088/logs/yarn-yarn-nodemanager-warehouse.swtched.com.log
... View more
Labels:
- Labels:
-
Apache YARN
05-04-2016
07:43 AM
@Christian Guegi : Still nothing .It's the very same error and it's not able to execute sqoop command. what is name of the jar file which has sqoopMain class?
... View more
05-04-2016
07:35 AM
What exactly is xmls attribute in oozie workflows? I am trying to run a sqoop command but I keep getting ava.lang.ClassNotFoundException: Class org.apache.oozie.action.hadoop.SqoopMain not found Now, I have tried everything suggested. Set the permissions right. Have /share/lib in /user/oozie. Running oozie jobs from oozie user only. Just wondering if xmlns could be the problem? I am using ambari. This is what I get when I check my versions: sqoop version
Warning: /usr/hdp/2.4.0.0-169/hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /usr/hdp/2.4.0.0-169/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
16/05/04 12:54:07 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.4.0.0-169
Sqoop 1.4.6.2.4.0.0-169
git commit id c327581e17e308322d77a2ae245d0287c0e488d4
Compiled by jenkins on Wed Feb 10 08:35:28 UTC 2016
[oozie@warehouse root]$ oozie version
Oozie client build version: 4.2.0.2.4.0.0-169 My workflow has; <workflow-app name="once-a-day" xmlns="uri:oozie:workflow:0.1">
<start to="sqoopAction"/>
<action name="sqoopAction">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<command>list-tables --connect jdbc:mysql://FQDN/erp --username hive --password hive
</command>
<archive>/lib/mysql-connector-java-5.1.38-bin.jarz#mysql-connector-java-5.1.38-bin.jar</archive>
</sqoop>
<ok to="end"/>
<error to="killJob"/>
</action>
<kill name="killJob">
<message>"Killed job due to error: ${wf:errorMessage(wf:lastErrorNode())}"</message>
</kill>
<end name="end" />
</workflow-app> job.props: nameNode=hdfs://FQDN:8020
jobTracker=FQDN:8050
queueName=default
oozie.libpath=/user/oozie/share/lib/, /user/oozie/share/lib/lib_20160427195409
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/scheduledimport
start=2016-04-26T00:00Z
end=2016-12-31T00:00Z
workflowAppUri=${nameNode}/user/${user.name}/scheduledimport
... View more
Labels:
- Labels:
-
Apache Oozie
-
Apache Sqoop
05-03-2016
12:00 PM
@Ryan Cicak : Which file would be launcher logs? submitting using oozie.use.system.libpath=true? I do have it in my job.properties file if that is what you were asking? I did check the job logs and could not find sqoopMain exception is all that it gets in there.
... View more
05-03-2016
07:02 AM
@Christian Guegi : HDP 2.4. Yes, service check in ambari is successful.
... View more
05-03-2016
04:32 AM
@Ajay:No, No. Shared was a typo. It's in share/lib only
... View more
05-02-2016
01:36 PM
@Christian Guegi: I could run import and list commands from the command line directly thought.Somehow oozie is not able to pick up the share/lib. Also, is sharelib different from share/lib? I have share/lib in /user/oozie but nothing called sharelib.
... View more