关于Hadoop [root@master ~]# hadoop --help Usage: hadoop [--config confdir] COMMANDwhere COMMAND is one of: fs run a generic filesystem user client version print the version jar <jar> run a jar file checknative [-a|-h] check native hadoop and compressi
一个普通的java project,里面引用了config.properties配置文件,将项目打成Runnable jar,然后将config.properties放到打包后的jar路径下,执行该jar包,出错,原工程中properties文件读取代码如下: InputStream in = SystemConfig.class.getResourceAsStream("/config.properties"); FileInputStream in = new FileInputS
读取jar包内配置文件: Properties config = new Properties(); InputStream in = this.getClass().getClassLoader().getResourceAsStream("/configfilename.properties"); InputStream in =Thread.currentThread().getContextClassLoader().getResource("/configfilen