errors
程序员文章站
2022-05-05 10:27:19
...
error1
思路:1、定位错误;2、分析原因
public class NameNode {
private static final Logger LOG = CrailUtils.getLogger();
public static void main(String args[]) throws Exception {
LOG.info("initalizing namenode ");
CrailConfiguration conf = new CrailConfiguration();
CrailConstants.updateConstants(conf);
......
}
}
package org.apache.crail.conf;
public class CrailConfiguration {
......
public CrailConfiguration() throws IOException {
conf = new ConcurrentHashMap<>();
Properties properties = loadProperties("crail-site.conf");
mergeProperties(properties);
}
......
private static Properties loadProperties(String resourceName){
Properties properties = new Properties();
//报错原因没有设置环境变量
String base = System.getenv("CRAIL_HOME");
FileInputStream inputStream = new FileInputStream(
new File(base + "/conf/" + resourceName));
......
}
......
}
解决:设置环境变量
export CRAIL_HOME=/home/yk/soft/crail/assembly/target/crail-1.0-bin
export PATH=$PATH:$CRAIL_HOME/bin
error2
error1 |
---|
crail pom.xml中依赖的disni版本与/soft/disni版本不一致 |
error2 | |
---|---|
推荐阅读
-
Android Studio报错Manifest merger failed with multiple errors
-
phpmyadmin出现Cannot start session without errors问题解决方法
-
Webpack友好的错误提示插件friendly-errors-webpack-plugin
-
IDEA下Maven的pom文件导入依赖出现Auto build completed with errors的问题
-
ORA-04045: errors during recompilation/revalidation of LBACSYS.LBAC_EVENTS
-
faster-rcnn错误信息 : tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [21] rhs s
-
ssh encountered 1 errors during the transfer错误3种解决方法
-
记录PHP错误日志 display_errors与log_errors的区别
-
oracle错误分析:ora-04063:view view_test has errors
-
Errors running builder 'DeploymentBuilder' on project