Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cannot create instance of TextInputFormat class while using read queries Beeline and Hue

Cannot create instance of TextInputFormat class while using read queries Beeline and Hue

New Contributor

When i connect Beeline/Hue through 'remote server' i get 'Cannot create instance of TextInputFormat class' whenever read queries are fired. The problem is not encountered when using embedded server.

3 REPLIES 3

Re: Cannot create instance of TextInputFormat class while using read queries Beeline and Hue

Expert Contributor
Hey there,

Can you provide your hive-site.xml? Seems like you've enabled a feature and
you're missing something in your classpath.

-Abe

Re: Cannot create instance of TextInputFormat class while using read queries Beeline and Hue

New Contributor
Thanks.

Sorry, I am unable to paste the config file here as the file is on remote machine.
I have compared the hive-site with that of another environment where hue and beeline are working fine..
The difference is in the following properties:
hive.aux.jars.path
com.db.fim.mr.encryption.key_path
com.db.fim.mr.encryption.alias

Re: Cannot create instance of TextInputFormat class while using read queries Beeline and Hue

Expert Contributor
It seems like there is a "newInstance" method call that is failing. Since
it is the TextInputFormat class that's failing to construct, it seems like
a version problem, classpath problem, or the class has been redefined
somewhere.

The paths you've provided, could you verify the existence and accessibility
of these paths? Also, have you tried removing those properties and seeing
if that works?

If you check your HS2 logs (/var/log/hive/hive-server2.log), you should
have a message that provides the classpath of HS2 as it boots up. It
usually takes on the form "STARTUP_MSG: classpath = ". Could you please
provide that classpath? Also, the HS2 logs should have the full exception
of which you are describing with a stack trace. Could you provide that as
well?

-Abe

Don't have an account?
Coming from Hortonworks? Activate your account here