List of Mac symbolic links in private folder:
ls -aFGl / | grep private
This will return:
lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:43 etc@ -> private/etc drwxr-xr-x@ 6 root wheel 204 Jan 9 12:53 private/ lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:44 tmp@ -> private/tmp lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:44 var@ -> private/var
This means that the difference between
/etc/hosts
and
private/etc/hosts
is that
/private/ is a directory and /etc/ a symlink. They both have the same contents. The same is true for /tmp and /var.
If you need to create a symlink to the “hosts” file, for example you want to have hosts in the cloud, you need to point it to /private/etc/hosts not to /etc/hosts otherwise it will not have any effect.
Actually it won’t work anyway.
Ariez
Jul 14, 2014 -
yangxla 说道:问个 hadoop 0.21.0兼容性问题将hadoop 0.20.0升级到0.21.0 后FileSystem.get 会报错:java.io.IOException: Filesystem clesod at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:297) at org.apache.hadoop.hdfs.DFSInputStream.close(DFSInputStream.java:426) at java.io.FilterInputStream.close(FilterInputStream.java:155) at java.util.zip.InflaterInputStream.close(InflaterInputStream.java:210) at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:109) at org.apache.hadoop.io.compress.GzipCodec$GzipInputStream.close(GzipCodec.java:126) at org.apache.hadoop.util.LineReader.close(LineReader.java:87) at org.apache.hadoop.mapred.LineRecordReader.close(LineRecordReader.java:214) at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.close(MapTask.java:218) at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:404) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:330) at org.apache.hadoop.mapred.Child$4.run(Child.java:217) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.securit只能将FileSystem.get 改为FileSystem.newInstance请问淘宝达人,有什么办法解决这个问题,避免大规模修改mapred应用