alternatives]$ alternatives --display hbase-conf
hbase-conf - status is auto.
link currently points to /etc/hbase/conf.dist
/etc/hbase/conf.dist - priority 30
Current `best' version is /etc/hbase/conf.dist.
alternatives]$ alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.my_cluster/ 10
failed to create /var/lib/alternatives/hbase-conf.new: Permission denied
alternatives]$ sudo alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.my_cluster/ 10
alternatives]$ sudo alternatives --display hbase-conf
hbase-conf - status is auto.
link currently points to /etc/hbase/conf.dist
/etc/hbase/conf.dist - priority 30
/etc/hbase/conf.my_cluster/ - priority 10
Current `best' version is /etc/hbase/conf.dist.
alternatives]$ sudo alternatives --set hbase-conf /etc/hbase/conf.my_cluster/
alternatives]$ sudo alternatives --display hbase-conf
hbase-conf - status is manual.
link currently points to /etc/hbase/conf.my_cluster/
/etc/hbase/conf.dist - priority 30
/etc/hbase/conf.my_cluster/ - priority 10
Current `best' version is /etc/hbase/conf.dist.
hbase-conf - status is auto.
link currently points to /etc/hbase/conf.dist
/etc/hbase/conf.dist - priority 30
Current `best' version is /etc/hbase/conf.dist.
alternatives]$ alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.my_cluster/ 10
failed to create /var/lib/alternatives/hbase-conf.new: Permission denied
alternatives]$ sudo alternatives --install /etc/hbase/conf hbase-conf /etc/hbase/conf.my_cluster/ 10
alternatives]$ sudo alternatives --display hbase-conf
hbase-conf - status is auto.
link currently points to /etc/hbase/conf.dist
/etc/hbase/conf.dist - priority 30
/etc/hbase/conf.my_cluster/ - priority 10
Current `best' version is /etc/hbase/conf.dist.
alternatives]$ sudo alternatives --set hbase-conf /etc/hbase/conf.my_cluster/
alternatives]$ sudo alternatives --display hbase-conf
hbase-conf - status is manual.
link currently points to /etc/hbase/conf.my_cluster/
/etc/hbase/conf.dist - priority 30
/etc/hbase/conf.my_cluster/ - priority 10
Current `best' version is /etc/hbase/conf.dist.