|
@@ -32,6 +32,7 @@ import org.apache.hadoop.conf.Configured;
|
|
import org.apache.hadoop.fs.shell.Command;
|
|
import org.apache.hadoop.fs.shell.Command;
|
|
import org.apache.hadoop.fs.shell.CommandFactory;
|
|
import org.apache.hadoop.fs.shell.CommandFactory;
|
|
import org.apache.hadoop.fs.shell.FsCommand;
|
|
import org.apache.hadoop.fs.shell.FsCommand;
|
|
|
|
+import org.apache.hadoop.security.UserGroupInformation;
|
|
import org.apache.hadoop.tools.TableListing;
|
|
import org.apache.hadoop.tools.TableListing;
|
|
import org.apache.hadoop.tracing.TraceUtils;
|
|
import org.apache.hadoop.tracing.TraceUtils;
|
|
import org.apache.hadoop.util.StringUtils;
|
|
import org.apache.hadoop.util.StringUtils;
|
|
@@ -92,6 +93,7 @@ public class FsShell extends Configured implements Tool {
|
|
|
|
|
|
protected void init() throws IOException {
|
|
protected void init() throws IOException {
|
|
getConf().setQuietMode(true);
|
|
getConf().setQuietMode(true);
|
|
|
|
+ UserGroupInformation.setConfiguration(getConf());
|
|
if (commandFactory == null) {
|
|
if (commandFactory == null) {
|
|
commandFactory = new CommandFactory(getConf());
|
|
commandFactory = new CommandFactory(getConf());
|
|
commandFactory.addObject(new Help(), "-help");
|
|
commandFactory.addObject(new Help(), "-help");
|