ITeye博客

2012 年文章归档

共 3 篇文章

Hive server进程如何杀死

kill -9 `jps -lm|grep HiveServer|awk '{print $1}'`

2012-04-26 17:51 · hive管理

hadoop中的NullpointException

在做一个hadoop项目中,利用HDFS存储日志文件。为了将未关闭的文件进行恢复,我们需要判断一个文件是否为正在打开的状态。fs.getClient().namenode.getBlockLocations(path.toUri().getPath(), 0, fs.getFileStatus(path).getLen()).isUnderConstruction();通过这个调用可以获取是否在打开。再调用fs.recoverLease(path)去强制关闭该文件。由于我们在getBlockLocations中最初用path.toString方法去调,结果导致以下NullPointExcep…

2012-03-08 14:33

java

在maven引用存在有log4j的依赖时,总会报以下错误: 12-3-5 下午10时49分58秒: Missing artifact javax.jms:jms:jar:1.1:compile 12-3-5 下午10时49分58秒: Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1:compile 12-3-5 下午10时49分58秒: Missing artifact com.sun.jmx:jmxri:jar:1.2.1:compile 通过查看发现log4j的pom依赖中包含有这些包的依赖,但在对应的仓库 https://maven-re…

2012-03-05 22:53 · log4j