Reply
Explorer
Posts: 22
Registered: ‎04-28-2016
Accepted Solution

How to use hdfs dfs command with DEBUG level

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

Explorer
Posts: 22
Registered: ‎04-28-2016

Re: How to use hdfs dfs command with DEBUG level

OK I just found it:

 

export HADOOP_ROOT_LOGGER=DEBUG,console