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.

How to use hdfs dfs command with DEBUG level

Solved Go to solution

How to use hdfs dfs command with DEBUG level

Explorer

Hi, 

 

Executing "hdfs dfs -ls /", we are getting a

KrbException: Fail to create credential. (63) - No service creds

even with a valid kerberos ticket on a particular Kerberos realm.

 

We've been looking into the source code of the JVM and we think we might find the cause with DEBUG level. According to http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html, there is a loglevel option to the hdfs command. So we launch it like this:

 

hdfs dfs -ls / --loglevel DEBUG

 

But that seems to have no effect (only WARN is getting printed). How can we control the loglevel?

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to use hdfs dfs command with DEBUG level

Explorer

OK I just found it:

 

export HADOOP_ROOT_LOGGER=DEBUG,console
1 REPLY 1
Highlighted

Re: How to use hdfs dfs command with DEBUG level

Explorer

OK I just found it:

 

export HADOOP_ROOT_LOGGER=DEBUG,console