Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-30-2015 06:02 AM
Couldn’t get Java MapReduce work with HCatalog in last HDP release, before HDP 2.3
Can anyone indicate if
Background: HCatalog Limitations with Java MapReduce
Dynamic Partitions (at Write):
Error:
15/11/30 15:11:56 INFO mapreduce.Job: Running job: job_1448337121999_0211 15/11/30 15:12:01 INFO mapreduce.Job: Job job_1448337121999_0211 running in uber mode : false 15/11/30 15:12:01 INFO mapreduce.Job: map 0% reduce 0% 15/11/30 15:12:05 INFO mapreduce.Job: map 100% reduce 0% 15/11/30 15:12:09 INFO mapreduce.Job: Task Id : attempt_1448337121999_0211_r_000000_0, Status : FAILED
Error: java.lang.NullPointerException at org.apache.hive.hcatalog.mapreduce.DynamicPartitionFileRecordWriterContainer.getLocalFileWriter(DynamicPartitionFileRecordWriterContainer.java:139) at org.apache.hive.hcatalog.mapreduce.FileRecordWriterContainer.write(FileRecordWriterContainer.java:110) at org.apache.hive.hcatalog.mapreduce.FileRecordWriterContainer.write(FileRecordWriterContainer.java:54) at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558) at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89) at org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105) at com.kgi.test.mapreduce.hcatalog.DynamicPartitionTest$Reduce.reduce(DynamicPartitionTest.java:107) at com.kgi.test.mapreduce.hcatalog.DynamicPartitionTest$Reduce.reduce(DynamicPartitionTest.java:1) at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171) at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389) 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:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
The DynamicPartitionTestJava package is attached
Created 12-01-2015 11:44 AM
See if this helps (from hcatalog project):
Created 11-30-2015 12:48 PM
@Ancil McBarnett Could you share error message? Also, if you can share the code then it will help.
Created 12-01-2015 11:44 AM
See if this helps (from hcatalog project):
Created 12-01-2015 11:18 PM
Thanks I see a newer version at
I need to review. If someone can help me test I would appreciate it.
Created 12-01-2015 11:10 PM
I uploaded the code and updated the Question with the error message. @Guilherme Braccialli @Neeraj Sabharwal
Created 02-03-2016 03:50 PM
@Ancil McBarnett please close
Created 03-07-2016 07:33 PM
It has now been patched.