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 initialize History Viewer error.

Highlighted

Unable to initialize History Viewer error.

Hi,

When I'm running "hadoop job -history all /user/abcd" it's throwing below error, Does anyone has faced this error or know any solution to fix it?

The cluster is Kerberized. Thanks for any help in advance.

user@hostname:~> hadoop job -history all /user/user
DEPRECATED: Use of this script to execute mapred command is deprecated.
Instead use the mapred command for it.


16/06/08 16:19:47 INFO impl.TimelineClientImpl: Timeline service address: http://timelinehostname.domain.com:8188/ws/v1/timeline/
16/06/08 16:19:47 INFO client.RMProxy: Connecting to ResourceManager at timelinehostname.domain.com/192.168.145.144:8050
Ignore unrecognized file: user
Exception in thread "main" java.io.IOException: Unable to initialize History Viewer
        at org.apache.hadoop.mapreduce.jobhistory.HistoryViewer.<init>(HistoryViewer.java:90)
        at org.apache.hadoop.mapreduce.tools.CLI.viewHistory(CLI.java:487)
        at org.apache.hadoop.mapreduce.tools.CLI.run(CLI.java:330)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
        at org.apache.hadoop.mapred.JobClient.main(JobClient.java:1266)
Caused by: java.io.IOException: Unable to initialize History Viewer
        at org.apache.hadoop.mapreduce.jobhistory.HistoryViewer.<init>(HistoryViewer.java:84)
        ... 5 more
user@hostname:~>
2 REPLIES 2

Re: Unable to initialize History Viewer error.

@Sri Bandaru

It should be pointing to the histo file for each job you ran.

Example.

hadoop job -history /mr-history/done/2016/06/08/000000/job_1465389025476_0002-1465413215501-hdfs-QuasiMonteCarlo-1465413237792-1-1-SUCCEEDED-default-1465413224558.jhist

Re: Unable to initialize History Viewer error.

Hi @Sri Bandaru did you tried with suggested way?

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