Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command-line option to specify the HDFS volume #21

Open
joeledwards opened this issue Mar 3, 2022 · 0 comments
Open

Add a command-line option to specify the HDFS volume #21

joeledwards opened this issue Mar 3, 2022 · 0 comments

Comments

@joeledwards
Copy link

I am unable to figure out how to point at a specific HDFS volume from the documentation associated with this project. I think it would simplify things to have a new option to support this and make the tool more useful "out of the box" for those who are new to hadoop/hdfs (such as myself) and are just looking to inspect the contents of a volume.

Here is the output from after the splash screen when running hadoopcli without any arguments:

java.lang.IllegalArgumentException: Wrong FS: hdfs://file:/user/joel, expected: file:///
	at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:785)
	at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:89)
	at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:645)
	at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:939)
	at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:640)
	at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:456)
	at com.cloudera.utils.hadoop.hdfs.shell.command.HdfsCd.implementation(HdfsCd.java:109)
	at com.cloudera.utils.hadoop.shell.command.AbstractCommand.execute(AbstractCommand.java:143)
	at com.cloudera.utils.hadoop.shell.AbstractShell.processCommand(AbstractShell.java:355)
	at com.cloudera.utils.hadoop.shell.AbstractShell.processInput(AbstractShell.java:269)
	at com.cloudera.utils.hadoop.HadoopSession$1.call(HadoopSession.java:1122)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)
Wrong FS: hdfs://file:/user/joel, expected: file:///.
Attempted to set home directory.  User home directory must exist.
If user is 'hdfs', consider using a proxy account for audit purposes.
Failed to Connect
Initialization Issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant