可能原因
- hdfs未启动
sbin/start-dfs.sh
- core-site.xml配置错误
<configuration>
<property>
fs.defaultFS
可能原因
sbin/start-dfs.sh
<configuration>
<property>
fs.defaultFS
原因是我多引用了一个hadoop-core: ... 去掉就好了。。。。
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.2.1</version>
</dependency>
Spring默认不支持直接用request.getParameter()来拿PUT方法的参数 (包括form-data 和 x-www-form-urlencoded)如果需要添加对其的支持,需要加上使用HttpPutFormContentFilter
添加配置
<filter>
<filter-name>httpPutFormContentFilter</filter-name>
org.springframework.web.filter.HttpPutFormContentFilter
Use "--" to make rm stop parsing command line options, like this:
rm -- --help
Use the following command:
$ tar -tvf file.tar
Use the following command:
tar 打包的时候提示:
tar: ___ file changed as we read it
这是因为打包的时候文件正在被修改,所以tar命令执行失败。
目前为止找到的方法只能是把原始文件拷贝一份,做一个snapshot,然后再对拷贝的目录进行压缩。。。
可能因为log写太多,磁盘满了...然后pm2就生气了,然后就挂了(>_>)
这两天发现我的tomcat总是用着用着莫名其妙地不返回东西了,也不报错。然后去查了一下java进程,做了一个dump发现非常多这样的进程:
"http-bio-8080-exec-14" daemon prio=10 tid=0x00007f8670011800 nid=0x6ed2 waiting for monitor entry [0x00007f86f55a7000]
java.lang.Thread.State: BLOCKED (on object monitor)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:781)
- waiting to lock <0x0000000600af2938> (a org.apache.commons.pool.impl.GenericObjectPool)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
var fs = require('fs');
var path = "目标路径..";
function readDirectory(dirPath) {
if (fs.existsSync(dirPath)) {
var files = fs.readdirSync(dirPath);