Project: springxd
Issue XD-3097: Provide defaults for xd-shell
As a user I'd like to have shell to automatically configure itself against an environment I have setup. This really came up with ambari work where shell can be anywhere in a cluster. Best I was able to do for now is to build an init file for commands(ambari xd-shell deploy already knows locations/addresses for xd admin and namenode): {code} $ cat /etc/springxd/conf/xd-shell.init admin config server http://ambari-2.localdomain:9393 hadoop config fs --namenode hdfs://ambari-2.localdomain:8020 {code} and then run those after starting xd-shell: {code} server-unknown:>script --file /etc/springxd/conf/xd-shell.init admin config server http://ambari-2.localdomain:9393 Successfully targeted http://ambari-2.localdomain:9393 hadoop config fs --namenode hdfs://ambari-2.localdomain:8020 Script required 0.662 seconds to execute xd:> {code}
Story points: 1