楔子
使用
ln -s
创建软链接时,一闪一闪 ,表示创建出错
使用绝对路劲创建软链接
ls -sf #f表示 强行建立文件或目录的连接,不论文件或目录是否存在;
[root@had2 hadoop-2.7.2]# ln -sf /opt/hadoop-2.7.2/etc/hadoop/core-site.xml /opt/hbase-1.3.1/conf/
[root@had2 hadoop-2.7.2]# ln -sf /opt/hadoop-2.7.2/etc/hadoop/hdfs-site.xml /opt/hbase-1.3.1/conf/
[root@had2 hadoop-2.7.2]# ll /opt/hbase-1.3.1/conf/
总用量 32
lrwxrwxrwx. 1 root root 42 2月 24 17:59 core-site.xml -> /opt/hadoop-2.7.2/etc/hadoop/core-site.xml
-rw-r--r--. 1 root root 1811 9月 21 2016 hadoop-metrics2-hbase.properties
-rw-r--r--. 1 root root 7464 2月 24 16:55 hbase-env.sh
-rw-r--r--. 1 root root 2257 9月 21 2016 hbase-policy.xml
-rw-r--r--. 1 root root 1766 2月 24 17:46 hbase-site.xml
lrwxrwxrwx. 1 root root 42 2月 24 17:59 hdfs-site.xml -> /opt/hadoop-2.7.2/etc/hadoop/hdfs-site.xml
-rw-r--r--. 1 root root 4722 4月 5 2017 log4j.properties
-rw-r--r--. 1 root root 10 12月 1 2015 regionservers
[root@had2 hadoop-2.7.2]#