Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

OrcStruct cannot be cloned using WritableUtils

$
0
0

I am trying to clone OrcStruct objects obtained from OrcInputFormat.next() method but, it fails with exception of

java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.hive.ql.io.orc.OrcStruct.<init>()
	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
	at org.apache.hadoop.io.WritableUtils.clone(WritableUtils.java:217)

So there is no public constructor for this Writable object. Is there any specific reason for making the constructor not accessible for a public class?


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>