<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: IllegalArgumentException and Illegal partition for 'val' in sqoop in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42597#M50673</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do get the logs now but none of the jobs have the two properties you asked for, Shall I share rest of the properties from the logs ?&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from the command line, I execute the job with both root user and hue user and the execution succedes in both the cases without any problem. My job is submitted to oozie using hue user only and that one fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2016 13:48:51 GMT</pubDate>
    <dc:creator>sim6</dc:creator>
    <dc:date>2016-07-04T13:48:51Z</dc:date>
    <item>
      <title>IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42558#M50662</link>
      <description>&lt;P&gt;I have asked this question over and over and am starting to believe that I am missing out on something really basic here. Not a lot of people seem to have come across this and I am really stuck on this one:&lt;/P&gt;&lt;P&gt;I get this error when I specify merge key argument with incremental import lastmodified in sqoop. If I run the job through command line, it works alright but not when I submit it to oozie. I submit my jobs through oozie. Not sure if oozie is the problem or hue, but sqoop job is not since it really works fine when executed through command line including the merge step.&lt;/P&gt;&lt;P&gt;My sqoop job looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop job --meta-connect jdbc:hsqldb:hsql://FQDN:16000/sqoop 
--create test_table -- import --driver com.mysql.jdbc.Driver --connect
jdbc:mysql://IP/DB?zeroDateTimeBehavior=convertToNull --username 
USER_NAME --password 'PASSWORD' --table test_table --merge-key id --
split-by id --target-dir LOCATION --incremental lastmodified 
--last-value 0 --check-column updated_at&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The first import works alright .Starting second import I get:&lt;/P&gt;&lt;P&gt;I created a small test table to test with an int, datetime and varchar , without any NULL or invalid chars in the data and yet I faced the same issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# id, updated_at, name
'1', '2016-07-02 17:16:53', 'l'
'3', '2016-06-29 14:12:53', 'f'&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;There were only 2 rows in the data and yet I got this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error: java.lang.IllegalArgumentException
at java.nio.ByteBuffer.allocate(ByteBuffer.java:330)
at org.apache.hadoop.mapred.SpillRecord.&amp;lt;init&amp;gt;(SpillRecord.java:51)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.mergeParts(MapTask.java:1848)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1508)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.close(MapTask.java:723)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:793)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)

Error: java.io.IOException: Illegal partition for 3 (-2)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1083)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:715)
at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:112)
at org.apache.sqoop.mapreduce.MergeMapperBase.processRecord(MergeMapperBase.java:82)
at org.apache.sqoop.mapreduce.MergeTextMapper.map(MergeTextMapper.java:58)
at org.apache.sqoop.mapreduce.MergeTextMapper.map(MergeTextMapper.java:34)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)

Error: java.lang.IllegalArgumentException
at java.nio.ByteBuffer.allocate(ByteBuffer.java:330)
at org.apache.hadoop.mapred.SpillRecord.&amp;lt;init&amp;gt;(SpillRecord.java:51)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.mergeParts(MapTask.java:1848)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1508)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.close(MapTask.java:723)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:793)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)

Error: java.io.IOException: Illegal partition for 1 (-2)
at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:1083)
at org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:715)
at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:112)
at org.apache.sqoop.mapreduce.MergeMapperBase.processRecord(MergeMapperBase.java:82)
at org.apache.sqoop.mapreduce.MergeTextMapper.map(MergeTextMapper.java:58)
at org.apache.sqoop.mapreduce.MergeTextMapper.map(MergeTextMapper.java:34)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I get this error only in OOZIE and submit the job through HUE and this works just fine including the Merge mapreduce when I run the sqoop job through command line&lt;/P&gt;&lt;P&gt;Taken from oozie launcher, This is what my mapreduce job logs look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; Invoking Sqoop command line now &amp;gt;&amp;gt;&amp;gt;
5373 [uber-SubtaskRunner] WARN org.apache.sqoop.tool.SqoopTool - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
5407 [uber-SubtaskRunner] INFO org.apache.sqoop.Sqoop - Running Sqoop version: 1.4.6-cdh5.7.0
5702 [uber-SubtaskRunner] WARN org.apache.sqoop.tool.BaseSqoopTool - Setting your password on the command-line is insecure. Consider using -P instead.
5715 [uber-SubtaskRunner] WARN org.apache.sqoop.ConnFactory - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
5740 [uber-SubtaskRunner] WARN org.apache.sqoop.ConnFactory - Parameter --driver is set to an explicit driver however appropriate connection manager is not being set (via --connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager. Please specify explicitly which connection manager should be used next time.
5754 [uber-SubtaskRunner] INFO org.apache.sqoop.manager.SqlManager - Using default fetchSize of 1000
5754 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.CodeGenTool - Beginning code generation
6091 [uber-SubtaskRunner] INFO org.apache.sqoop.manager.SqlManager - Executing SQL statement: SELECT t.* FROM test_table AS t WHERE 1=0
6098 [uber-SubtaskRunner] INFO org.apache.sqoop.manager.SqlManager - Executing SQL statement: SELECT t.* FROM test_table AS t WHERE 1=0
6118 [uber-SubtaskRunner] INFO org.apache.sqoop.orm.CompilationManager - HADOOP_MAPRED_HOME is /opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hadoop-mapreduce
8173 [uber-SubtaskRunner] INFO org.apache.sqoop.orm.CompilationManager - Writing jar file: /tmp/sqoop-yarn/compile/454902ac78d49b783a1f51b7bfe0a2be/test_table.jar
8185 [uber-SubtaskRunner] INFO org.apache.sqoop.manager.SqlManager - Executing SQL statement: SELECT t.* FROM test_table AS t WHERE 1=0
8192 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.ImportTool - Incremental import based on column updated_at
8192 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.ImportTool - Lower bound value: '2016-07-02 17:13:24.0'
8192 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.ImportTool - Upper bound value: '2016-07-02 17:16:56.0'
8194 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.ImportJobBase - Beginning import of test_table
8214 [uber-SubtaskRunner] INFO org.apache.sqoop.manager.SqlManager - Executing SQL statement: SELECT t.* FROM test_table AS t WHERE 1=0
8230 [uber-SubtaskRunner] WARN org.apache.sqoop.mapreduce.JobBase - SQOOP_HOME is unset. May not be able to find all job dependencies.
8716 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.db.DBInputFormat - Using read commited transaction isolation
8717 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat - BoundingValsQuery: SELECT MIN(id), MAX(id) FROM test_table WHERE ( updated_at &amp;gt;= '2016-07-02 17:13:24.0' AND updated_at &amp;lt; '2016-07-02 17:16:56.0' )
8721 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.db.IntegerSplitter - Split size: 0; Num splits: 4 from: 1 to: 1
25461 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.ImportJobBase - Transferred 26 bytes in 17.2192 seconds (1.5099 bytes/sec)
25471 [uber-SubtaskRunner] INFO org.apache.sqoop.mapreduce.ImportJobBase - Retrieved 1 records.
25536 [uber-SubtaskRunner] WARN org.apache.sqoop.mapreduce.ExportJobBase - IOException checking input file header: java.io.EOFException
25550 [uber-SubtaskRunner] WARN org.apache.sqoop.mapreduce.JobBase - SQOOP_HOME is unset. May not be able to find all job dependencies.
Heart beat
Heart beat
70628 [uber-SubtaskRunner] ERROR org.apache.sqoop.tool.ImportTool - Merge MapReduce job failed!
70628 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.ImportTool - Saving incremental import state to the metastore
70831 [uber-SubtaskRunner] INFO org.apache.sqoop.tool.ImportTool - Updated data for job: test_table&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:28:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42558#M50662</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2022-09-16T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42571#M50663</link>
      <description>&lt;P&gt;Hi sim6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reporting this problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem is weird. The first thing I have noticed is that we are using Uber mode with Oozie Launchers. Could you please try to disable it and see whether it helps? To do this, please set below in oozie-site.xml of Oozie Server:&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;oozie.action.launcher.mapreduce.job.ubertask.enable&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;If you are using Cloudera Manager, please set them in Oozie server safety valve and then restart Oozie server. If you are not using CM, please manually add it to oozie-site.xml and restart Oozie Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still have this problem after disabling Oozie Launcher uber mode, please try to collect the configuration of one failed and one succeeded Sqoop Merge job. The stack trace shows that the mapper output collector cannot write the data because it&amp;nbsp;cannot find the partition for the given output key (1 and 3 for your data). I am suspecting that the partitioner passed to the jobs are different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 02:26:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42571#M50663</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-04T02:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42572#M50664</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks. I feel a bit relaxed after hearing something on this.I am usign CM and I tried setting&amp;nbsp;uber mode off. It still has the same problem. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; i haven't seen any of my merge jobs succeeding .I have tried it with different data from different databases as well but never did it work right. &amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 05:33:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42572#M50664</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-04T05:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42580#M50665</link>
      <description>&lt;P&gt;This is really weird. Could you please upload the diagnostic data of one failed merge job together with one successful job?&lt;/P&gt;&lt;P&gt;To get the diagnostic data of a job, please go to CM &amp;gt; YARN &amp;gt; Applications, find the job, click the buttom to its right and choose "Collect Diagnostic Data". In the popout diaglogue, please confirm the operation and download the result data after it finishes.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 07:39:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42580#M50665</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-04T07:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42581#M50666</link>
      <description>&lt;DIV class="navbar navbar-inverse AppHeader CustomGradientblack"&gt;&lt;DIV class="navbar-inner"&gt;&lt;DIV class="container"&gt;&lt;P&gt;Hey, Tried collecting the diagnostics. I got an error:&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="modal modal-tall hide modal-wider modal-error in"&gt;&lt;DIV class="modal-header"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="modal-header"&gt;A server error has occurred. Send the following information to Cloudera.&lt;/DIV&gt;&lt;DIV class="modal-body "&gt;&lt;P&gt;&lt;STRONG&gt;Path: &lt;A href="http://warehouse.swtched.com:7180/cmf/services/51/yarnDiagnosticsCollection" target="_blank"&gt;http://warehouse.swtched.com:7180/cmf/services/51/yarnDiagnosticsCollection&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version: Cloudera Express 5.7.0 (#76 built by jenkins on 20160401-1334 git: ec0e7e69444280aa311511998bd83e8e6572f61c)&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="Toggler errorSummary alert alert-error"&gt;&lt;STRONG&gt;java.lang.NullPointerException&lt;/STRONG&gt;:&lt;BR /&gt;at &lt;STRONG&gt;YarnController.java line 463&lt;/STRONG&gt;&lt;BR /&gt;in com.cloudera.server.web.cmf.YarnController collectYarnApplicationDiagnostics()&lt;/DIV&gt;&lt;DIV class="errorDetails"&gt;Stack Trace:&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;YarnController.java line 463&lt;/STRONG&gt;&lt;BR /&gt;in com.cloudera.server.web.cmf.YarnController collectYarnApplicationDiagnostics()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;generated&amp;gt; line -1&lt;/STRONG&gt;&lt;BR /&gt;in com.cloudera.server.web.cmf.YarnController$$FastClassByCGLIB$$ac91d355 invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;MethodProxy.java line 191&lt;/STRONG&gt;&lt;BR /&gt;in net.sf.cglib.proxy.MethodProxy invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Cglib2AopProxy.java line 688&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation invokeJoinpoint()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ReflectiveMethodInvocation.java line 150&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;MethodSecurityInterceptor.java line 61&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ReflectiveMethodInvocation.java line 172&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.aop.framework.ReflectiveMethodInvocation proceed()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Cglib2AopProxy.java line 621&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor intercept()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&amp;lt;generated&amp;gt; line -1&lt;/STRONG&gt;&lt;BR /&gt;in com.cloudera.server.web.cmf.YarnController$$EnhancerByCGLIB$$f035552a collectYarnApplicationDiagnostics()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;NativeMethodAccessorImpl.java line -2&lt;/STRONG&gt;&lt;BR /&gt;in sun.reflect.NativeMethodAccessorImpl invoke0()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;NativeMethodAccessorImpl.java line 57&lt;/STRONG&gt;&lt;BR /&gt;in sun.reflect.NativeMethodAccessorImpl invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DelegatingMethodAccessorImpl.java line 43&lt;/STRONG&gt;&lt;BR /&gt;in sun.reflect.DelegatingMethodAccessorImpl invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Method.java line 606&lt;/STRONG&gt;&lt;BR /&gt;in java.lang.reflect.Method invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HandlerMethodInvoker.java line 176&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.bind.annotation.support.HandlerMethodInvoker invokeHandlerMethod()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AnnotationMethodHandlerAdapter.java line 436&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter invokeHandlerMethod()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AnnotationMethodHandlerAdapter.java line 424&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DispatcherServlet.java line 790&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.DispatcherServlet doDispatch()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DispatcherServlet.java line 719&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.DispatcherServlet doService()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FrameworkServlet.java line 669&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.FrameworkServlet processRequest()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FrameworkServlet.java line 585&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.servlet.FrameworkServlet doPost()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpServlet.java line 727&lt;/STRONG&gt;&lt;BR /&gt;in javax.servlet.http.HttpServlet service()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpServlet.java line 820&lt;/STRONG&gt;&lt;BR /&gt;in javax.servlet.http.HttpServlet service()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHolder.java line 511&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHolder handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1221&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;UserAgentFilter.java line 78&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.servlet.UserAgentFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;GzipFilter.java line 131&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.servlet.GzipFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1212&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;JAMonServletFilter.java line 48&lt;/STRONG&gt;&lt;BR /&gt;in com.jamonapi.http.JAMonServletFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1212&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;JavaMelodyFacade.java line 109&lt;/STRONG&gt;&lt;BR /&gt;in com.cloudera.enterprise.JavaMelodyFacade$MonitoringFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1212&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 311&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterSecurityInterceptor.java line 116&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.access.intercept.FilterSecurityInterceptor invoke()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterSecurityInterceptor.java line 83&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.access.intercept.FilterSecurityInterceptor doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ExceptionTranslationFilter.java line 113&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.access.ExceptionTranslationFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SessionManagementFilter.java line 101&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.session.SessionManagementFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AnonymousAuthenticationFilter.java line 113&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.authentication.AnonymousAuthenticationFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;RememberMeAuthenticationFilter.java line 146&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SecurityContextHolderAwareRequestFilter.java line 54&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;RequestCacheAwareFilter.java line 45&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.savedrequest.RequestCacheAwareFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AbstractAuthenticationProcessingFilter.java line 182&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;LogoutFilter.java line 105&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.authentication.logout.LogoutFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SecurityContextPersistenceFilter.java line 87&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.context.SecurityContextPersistenceFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ConcurrentSessionFilter.java line 125&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.session.ConcurrentSessionFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 323&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy$VirtualFilterChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;FilterChainProxy.java line 173&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.security.web.FilterChainProxy doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DelegatingFilterProxy.java line 237&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.filter.DelegatingFilterProxy invokeDelegate()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DelegatingFilterProxy.java line 167&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.filter.DelegatingFilterProxy doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1212&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;CharacterEncodingFilter.java line 88&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.filter.CharacterEncodingFilter doFilterInternal()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;OncePerRequestFilter.java line 76&lt;/STRONG&gt;&lt;BR /&gt;in org.springframework.web.filter.OncePerRequestFilter doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 1212&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler$CachedChain doFilter()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ServletHandler.java line 399&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.ServletHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SecurityHandler.java line 216&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.security.SecurityHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SessionHandler.java line 182&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.servlet.SessionHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SecurityHandler.java line 216&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.security.SecurityHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ContextHandler.java line 767&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.handler.ContextHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;WebAppContext.java line 450&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.webapp.WebAppContext handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HandlerWrapper.java line 152&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.handler.HandlerWrapper handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;StatisticsHandler.java line 53&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.handler.StatisticsHandler handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HandlerWrapper.java line 152&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.handler.HandlerWrapper handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Server.java line 326&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.Server handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpConnection.java line 542&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.HttpConnection handleRequest()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpConnection.java line 945&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.HttpConnection$RequestHandler content()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpParser.java line 756&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.HttpParser parseNext()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpParser.java line 218&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.HttpParser parseAvailable()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;HttpConnection.java line 404&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.jetty.HttpConnection handle()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SelectChannelEndPoint.java line 410&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.io.nio.SelectChannelEndPoint run()&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;QueuedThreadPool.java line 582&lt;/STRONG&gt;&lt;BR /&gt;in org.mortbay.thread.QueuedThreadPool$PoolThread run()&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Jul 2016 07:50:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42581#M50666</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-04T07:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42589#M50667</link>
      <description>&lt;P&gt;Hello Sim6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding (will confirm) is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The &lt;STRONG&gt;--merge-key&lt;/STRONG&gt; option is part of the Sqoop1 &lt;STRONG&gt;merge&lt;/STRONG&gt; command and not available to be used with the Sqoop1 &lt;STRONG&gt;import&lt;/STRONG&gt; command&lt;/LI&gt;&lt;LI&gt;The Sqoop1 &lt;STRONG&gt;merge&lt;/STRONG&gt; command is intented to run &lt;EM&gt;after&lt;/EM&gt; (separate job)&amp;nbsp;to flatten the two datasets that exist in HDFS as a result of multiple Sqoop1 &lt;STRONG&gt;import&lt;/STRONG&gt; commands (commonly created&amp;nbsp;with&amp;nbsp;&lt;STRONG&gt;--incremental&lt;/STRONG&gt; however not exclusively) &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you remove "&lt;STRONG&gt;--merge-key id&lt;/STRONG&gt;" from your command, does it work without error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Markus Kemper&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 11:40:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42589#M50667</guid>
      <dc:creator>Markus Kemper</dc:creator>
      <dc:date>2016-07-04T11:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42591#M50668</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5656"&gt;@Markus Kemper﻿&lt;/a&gt;: That's right. But then we already have the file in target dir when running the import for second time. It throws error that either import using incremental append or specify &amp;nbsp;merge key when target dir already exists and using incremental lastmodified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using sqoop merge command in a seprate job sounds okay but I would like to have --merge-key to work when it's available &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the link&amp;nbsp;&lt;A title="link" href="https://community.hortonworks.com/questions/10710/sqoop-incremental-import-working-fine-now-i-want-k.html" target="_blank"&gt;https://community.hortonworks.com/questions/10710/sqoop-incremental-import-working-fine-now-i-want-k.html&lt;/A&gt;&amp;nbsp;suggests to use --merge-key with import command only and has been confirmed that it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This link here&lt;A href="http://stackoverflow.com/questions/34400973/apache-sqoop-incremental-import?rq=1" target="_self"&gt;http://stackoverflow.com/questions/34400973/apache-sqoop-incremental-import?rq=1&lt;/A&gt;&amp;nbsp;also confirms that it works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, it works when I run the sqoop job through CLI. It gives this problem only when running it through oozie&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:34:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42591#M50668</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-04T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42592#M50669</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/5656"&gt;@Markus Kemper﻿&lt;/a&gt;&amp;nbsp;Although not documented, we can use "--merge-key" in Sqoop import command if "--incremental lastmodified" is used. If the target dir is not empty, the Sqoop import tool will automatically run a merge job after the import job is finished to merge the data. Please see below source code for details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cloudera/sqoop/blob/cdh5-1.4.6_5.7.1/src/java/org/apache/sqoop/tool/ImportTool.java#L515-L517" target="_blank"&gt;https://github.com/cloudera/sqoop/blob/cdh5-1.4.6_5.7.1/src/java/org/apache/sqoop/tool/ImportTool.java#L515-L517&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cloudera/sqoop/blob/cdh5-1.4.6_5.7.1/src/java/org/apache/sqoop/tool/ImportTool.java#L432-L433" target="_blank"&gt;https://github.com/cloudera/sqoop/blob/cdh5-1.4.6_5.7.1/src/java/org/apache/sqoop/tool/ImportTool.java#L432-L433&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I have just realized that you are express edition of Cloudera Manager. It may not have the function of collecting diagnostic data of jobs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help manually check:&lt;BR /&gt;1) Please add parameter "--verbose" and "-Dmapreduce.map.log.level=DEUBG" to your Sqoop import command, run the sqoop job and. After it failed, please upload ALL the sqoop command output and the failed MR job logs (use command "yarn logs -applicationId=&amp;lt;app_id&amp;gt;" to get it)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2) The value of property "mapreduce.job.partitioner.class" in both successful and failed jobs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) The value of property "sqoop.merge.key.col" in both successful and failed jobs&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42592#M50669</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-04T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42593#M50670</link>
      <description>&lt;P&gt;To enable the logs, I added it to my job :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop job -Dmapreduce.map.log.level=DEUBG --meta-connect jdbc:hsqldb:hsql://FQDN:16000/sqoop --verbose --create test_table -- import --driver com.mysql.jdbc.Driver --connect jdbc:mysql://ip3/testdb?zeroDateTimeBehavior=convertToNull --username root --password 'password' --table test_table --merge-key id --split-by id --target-dir location&amp;nbsp;--incremental lastmodified --last-value 0 --check-column updated_at&lt;/PRE&gt;&lt;P&gt;But trying to get the logs, I still get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/tmp/logs/root/logs/application_1463739226103_5116does not exist.&lt;/P&gt;&lt;P&gt;Log aggregation has not completed or is not enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a sidenote: I have also tried to change time zone of sqoop job in similar manner using -D option and that did not work either. Am I adding it in an incorrect way to the sqoop job?&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:56:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42593#M50670</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-04T12:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42594#M50671</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;re: Sqoop1 import + --incremental + --merge-key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Although not documented, we can use "--merge-key" in Sqoop import command if "--incremental lastmodified" is used. If the target dir is not empty, the Sqoop import tool will automatically run a merge job after the import job is finished to merge the data&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;Thank you for pointing this out, I will review further and create a Sqoop1 Doc Jira as necessary to properly address the command usage and expected behavior. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;Let's follow&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;'s approach on debugging further for now while I review the documentation issue in the background.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:57:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42594#M50671</guid>
      <dc:creator>Markus Kemper</dc:creator>
      <dc:date>2016-07-04T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42595#M50672</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know under which user you submitted the oozie Sqoop job? Is it the same user as you ran the job on command line? If you are using different users for Oozie and command line jobs, please try to switch to the same user and see whether it brings any change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the application logs, we may need to specify the application owner to be able to get it. Please try below command:&lt;/P&gt;&lt;PRE&gt;sudo -u mapred yarn logs -applicationId &amp;lt;app_id&amp;gt; -appOwner &amp;lt;owner&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:14:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42595#M50672</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-04T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42597#M50673</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do get the logs now but none of the jobs have the two properties you asked for, Shall I share rest of the properties from the logs ?&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from the command line, I execute the job with both root user and hue user and the execution succedes in both the cases without any problem. My job is submitted to oozie using hue user only and that one fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:48:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42597#M50673</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-04T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42602#M50674</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;: I did sqoop job --show test_table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;verbose = false
incremental.last.value = 2016-07-05 05:29:33.0
db.connect.string = jdbc:mysql://10.10.11.3/testdb?zeroDateTimeBehavior=convertToNull
codegen.output.delimiters.escape = 0
codegen.output.delimiters.enclose.required = false
codegen.input.delimiters.field = 0
split.limit = null
hbase.create.table = false
db.require.password = false
hdfs.append.dir = false
db.table = test_table
codegen.input.delimiters.escape = 0
db.password = St@N!$$r3789L0vE
accumulo.create.table = false
import.fetch.size = null
codegen.input.delimiters.enclose.required = false
db.username = root
reset.onemapper = false
codegen.output.delimiters.record = 10
import.max.inline.lob.size = 16777216
hbase.bulk.load.enabled = false
hcatalog.create.table = false
db.clear.staging.table = false
incremental.col = updated_at
codegen.input.delimiters.record = 0
enable.compression = false
hive.overwrite.table = false
hive.import = false
codegen.input.delimiters.enclose = 0
accumulo.batch.size = 10240000
hive.drop.delims = false
customtool.options.jsonmap = {}
codegen.output.delimiters.enclose = 0
hdfs.delete-target.dir = false
codegen.output.dir = .
codegen.auto.compile.dir = true
relaxed.isolation = false
mapreduce.num.mappers = 4
accumulo.max.latency = 5000
import.direct.split.size = 0
codegen.output.delimiters.field = 44
export.new.update = UpdateOnly
incremental.mode = DateLastModified
hdfs.file.format = TextFile
codegen.compile.dir = /tmp/sqoop-root/compile/58af2027880638f91ea875a1c51b5de8
direct.import = false
db.split.column = id
hdfs.target.dir = /user/hue/ERP/testinc
hive.fail.table.exists = false
merge.key.col = id
jdbc.driver.class = com.mysql.jdbc.Driver
db.batch = false&lt;/PRE&gt;&lt;P&gt;Value of merge.key.col as expected is id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I still do not get the value other attribute you asked for.&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 04:58:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42602#M50674</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-05T04:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42608#M50675</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response! I am currently on a holiday, and thus can only check this problem occasionally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't make sense that the merge job doesn't have a partitioner class, because it does need a reduce phase to merge the records. Could you please:&lt;/P&gt;&lt;P&gt;1) Make sure that you are checking the merge job, not the import job.&lt;/P&gt;&lt;P&gt;2) Please check the number of reducers of the failed merge job&lt;/P&gt;&lt;P&gt;3) Please try to add parameter "-Dmapred.reduce.tasks=1" to your Sqoop import job and see whether it helps&lt;/P&gt;&lt;P&gt;4) If nothing above helps, let's try to narrow down the problem a bit by removing the impact of Sqoop metastore. Please run the command directly in Oozie Sqoop action instead of storing it in metastore. The command should be something like below (I have removed the --driver parameter as well to use the MySQL connector instead of the generic JDBC connector, although it shouldn't make any&amp;nbsp;difference for our problem).&lt;/P&gt;&lt;PRE&gt;sqoop import -Dmapred.reduce.tasks=1 --connect
jdbc:mysql://IP/DB?zeroDateTimeBehavior=convertToNull --username 
USER_NAME --password 'PASSWORD' --table test_table --merge-key id --
split-by id --target-dir LOCATION --incremental lastmodified 
--last-value 0 --check-column updated_at&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I have some time, I will try to reproduce your problem. Please let me know the CDH and CM version you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 13:18:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42608#M50675</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-05T13:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42628#M50676</link>
      <description>&lt;P&gt;Awesome. Using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-Dmapred.reduce.tasks=1 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;worked. I used it in my job with --meta-connect arguement as well and it still works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I would really like to understand what goes behind the scenes. Could you please explain why exactly I needed to use this argument? &amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I posted an issue here and it seems to not have gained any attention, Could you please have a look at it and let me know if this is supported at all?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Data-Ingestion-Integration/change-sqoop-metastore-timezone-to-GMT/m-p/42596/highlight/true#M1701" target="_self"&gt;http://community.cloudera.com/t5/Data-Ingestion-Integration/change-sqoop-metastore-timezone-to-GMT/m-p/42596/highlight/true#M1701&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other than that,&amp;nbsp;Thank you for keeping up all this time and helping out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . Happy holiday &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 05:19:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42628#M50676</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-06T05:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42667#M50677</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I am not 100% sure how my solutions works &amp;nbsp;at this moment. And because I am on holiday, I cannot reproduce this problem to figure out the exact root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I worked out this workaround with below observations:&lt;/P&gt;&lt;P&gt;1) Sqoop import job has no reducers, but Sqoop merge job does have merge job&lt;/P&gt;&lt;P&gt;2) According to all the information you have provided, your Oozie Sqoop job seems to fail because lack of partition class definition in job configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I was suspecting that Oozie Sqoop reuse the jobConf object between Sqoop import and merge job, and thus accidentally set the number of reducers in merge job to 0. By explicitly setting the number of reducers to 1, we might be able to workaround this problem. And we are lucky that this does work. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will later try to reproduce this problem and check whether my theory is correct or not.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 08:55:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42667#M50677</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-07T08:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42739#M50678</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I cannot reproduce your problem on my local cluster. Not sure how&amp;nbsp;this happened to you.&lt;/P&gt;&lt;P&gt;Please remember to increase the number of reducers when your data grow. 1 reducer is definitely not enough for big tables.&lt;/P&gt;&lt;P&gt;I will have a look at the other problem you asked here when I have some time.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 07:40:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42739#M50678</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-11T07:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42842#M50679</link>
      <description>&lt;P&gt;Thank you. I see that but I have always had this issue and is likely to happen again on increasing the number of clusters.Could it be some configurations or something that are causing this particular issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, look forward to a &amp;nbsp;response on the other question. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 18:31:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42842#M50679</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-13T18:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42978#M50680</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/6888"&gt;@yshi﻿&lt;/a&gt;: Hey, was hoping to hear back on the other issue I had created &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . Is there a way I can bump that question on the forum to get some attention to it?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 06:00:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42978#M50680</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-07-19T06:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: IllegalArgumentException and Illegal partition for 'val' in sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42983#M50681</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16612"&gt;@sim6﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Sorry, I am very busy these days to catch up with my work after the holiday.&lt;/P&gt;&lt;P&gt;I will find some time to look at the other problem tomorrow.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 07:07:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IllegalArgumentException-and-Illegal-partition-for-val-in/m-p/42983#M50681</guid>
      <dc:creator>yshi</dc:creator>
      <dc:date>2016-07-19T07:07:49Z</dc:date>
    </item>
  </channel>
</rss>

