Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

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