Esempio n. 1
0
                Hive.install(cluster_options)
                HBase.install(cluster_options)

            if options.command == "startZookeeper":
                Zookeeper.start(ClusterOptions())

            if options.command == "stopZookeeper":
                Zookeeper.stop(ClusterOptions())

            if options.command == "startStorm":
                Storm.start(ClusterOptions())

            if options.command == "initCluster":
                Hadoop.init(ClusterOptions())

            if options.command == "startHadoop":
                Hadoop.start(ClusterOptions())

            if options.command == "stopHadoop":
                Hadoop.stop(ClusterOptions())

            if options.command == "startHBase":
                HBase.start(ClusterOptions())

            if options.command == "stopHBase":
                HBase.stop(ClusterOptions())

            if options.command == "reboot":
                Infra.reboot(ClusterOptions())

    print "Done"