hadoop - Oozie with Spark Java action -


i have tried oozie spark using java action.

  • oozie version 4.1.0.3
  • spark version 1.2.1.

the same code working fine when run using spark-submit. oozie, giving exception.

in java code, have selection statement using hivecontext.sal("select * from.."), @ time of getting collection.

note: have no found 1s in hive-site.xml

exception:

java.lang.runtimeexception: java.lang.numberformatexception: input string: "1s"

find workflow.xml used below

<action name="scala_java">     <java>     <job-tracker>${jobtracker}</job-tracker>     <name-node>${namenode}</name-node>     <job-xml> ${namenode}/user/${wf:user()}/${approot}/mysite/hive-site.xml </job-xml>     <configuration>     <property>     <name>oozie.hive.defaults</name>     <value>${namenode}/user/${wf:user()}/${approot}/mysite/hive-default.xml</value>     </property>     <property>     <name>pool.name</name>                                                     <value>${etlpoolname}</value>     </property>     <property>                                                  <name>oozie.use.system.libpath</name>                                                  <value>true</value>     </property>     <property>                                                    <name>oozie.launcher.mapreduce.job.user.classpath.first</name>     <value>true</value>     </property>     <property>                                                    <name>oozie.launcher.pool.name</name>                                                  <value>${oozielauncherpoolname}</value>     </property>      <property>                                                 <name>datanucleus.autocreateschema</name>                                                 <value>false</value>     </property>     <property>                                               <name>datanucleus.fixeddatastore</name>                                   </property>     </configuration>     <main-class>org.apache.spark.deploy.sparksubmit</main-class>         <arg>--master</arg>         <arg>yarn</arg>         <arg>--num-executors</arg>         <arg>64</arg>         <arg>--executor-memory</arg>         <arg>8g</arg>         <arg>--driver-memory</arg>         <arg>2g</arg>         <arg>--executor-cores</arg>         <arg>5</arg>         <arg>--queue</arg>         <arg>testq</arg>                                                <arg>--class</arg>         <arg>test</arg>         <arg>myscala-0.0.1-snapshot.jar</arg>         <file>myscala-0.0.1-snapshot.jar</file>        </java>     </action> 

how solve problem?


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -