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.

Unable to start hive - encodingexception?

Highlighted

Unable to start hive - encodingexception?

New Contributor

I am running hadoop (2.7.5) with 3 nodes(1 name, 2 data).

I used sqoop for get data from oracle and it worked fine.

But running hive(2.3.4) cli is failed with encoding exception.



Exception in thread "main" java.io.UnsupportedEncodingException: UTF-8"
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:61)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:100)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:231)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader(CliDriver.java:872)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:803)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)


locale command shows 'LANG=en_US.UTF-8' both root and hadoop user.

Could you have any solution or anything to try?