Welcome to the Cloudera Community

Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Who agreed with this topic

"main" java.lang.RuntimeException: core-site.xml not found

avatar
New Contributor

Good day,

 

We have installed CDH 5.4.2

 

We are getting the below error while running the Hadoop fs (file system) command.

 

[root@cloudera-one bin]# hadoop fs -cat hdfs://192.168.6.173:7180/file1Exception in thread "main" java.lang.RuntimeException: core-site.xml not found 

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2476)

 

        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2476)

        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2402)

        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2319)

        at org.apache.hadoop.conf.Configuration.set(Configuration.java:1057)

        at org.apache.hadoop.conf.Configuration.set(Configuration.java:1029)

        at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1367)

        at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:319)

        at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:485)

        at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)

        at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)

        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)

        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)

        at org.apache.hadoop.fs.FsShell.main(FsShell.java:340)

 

Kindly advise the solution at an earliest. Thanks in Advance.

 

Veera

 

Who agreed with this topic