Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to use hdfs dfs command with DEBUG level

avatar
Contributor

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

avatar
Contributor

OK I just found it:

 

export HADOOP_ROOT_LOGGER=DEBUG,console

View solution in original post

1 REPLY 1

avatar
Contributor

OK I just found it:

 

export HADOOP_ROOT_LOGGER=DEBUG,console