欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

errors

程序员文章站 2022-05-05 10:27:19
...

RDMA errors

error1

errors
思路: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

errors

error1
errors crail pom.xml中依赖的disni版本与/soft/disni版本不一致
error2
errors