Example #1
0
"""
from resource_management.libraries.script import Script
from resource_management.libraries.functions.default import default
import util

# server configurations
config = Script.get_config()

# hermes worker hosts
hostname = default("hostname", [])
worker_hosts = default("/clusterHostInfo/hermesoffline_worker_hosts", [])

# tube master hosts
master_listen_port = config['configurations']['master-ini']['master.listen.port']
master_hosts = default("/clusterHostInfo/tube_master_hosts", [])
hermes_adapter_pull_masterHost = util.zk_connection_string(master_hosts, master_listen_port)

# zk hosts
zk_hosts = default("/clusterHostInfo/zookeeper_hosts", [])
hermes_zkConnectionString = util.zk_connection_string(zk_hosts, 2181)

# JAVA HOME
java_home = default("/hostLevelParams/java_home", "/usr/jdk64/jdk1.7.0_67")
# hermes port used
hermes_server_port = config['configurations']['hermes-properties']['hermes.server.port']
hermes_worker_port = config['configurations']['hermes-properties']['hermes.worker.port']
debug_jms_port = config['configurations']['hermes-properties']['debug.jms.port']
# hermes JVN setting
hermes_xms = config['configurations']['hermes-properties']['hermes.xms']
hermes_xmx = config['configurations']['hermes-properties']['hermes.xmx']
hermes_xmn = config['configurations']['hermes-properties']['hermes.xmn']
Example #2
0
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

"""
from resource_management.libraries.script import Script
from resource_management.libraries.functions.default import default
import util

# server configurations
config = Script.get_config()

# zk hosts
zk_hosts = default("/clusterHostInfo/zookeeper_hosts", [])
zk_connection = util.zk_connection_string(zk_hosts, 2181)

host_name = default("hostname", [])

# JAVA HOME
java_home = default("/hostLevelParams/java_home", "/usr/jdk64/jdk1.7.0_67")

# master-ini.xml
tube_user = config['configurations']['master-ini']['tube.user']
tube_group = config['configurations']['master-ini']['tube.group']
zk_root = config['configurations']['master-ini']['zk.root']
master_listen_port = config['configurations']['master-ini']['master.listen.port']
master_web_port = config['configurations']['master-ini']['master.web.port']
consumer_balance_period = config['configurations']['master-ini']['consumer.balance.period']
first_balance_delay_after_start = config['configurations']['master-ini']['first.balance.delay.after.start']
consumer_heartbeat_timeout = config['configurations']['master-ini']['consumer.heartbeat.timeout']
Example #3
0
"""
from resource_management.libraries.script import Script
from resource_management.libraries.functions.default import default
import util

# server configurations
config = Script.get_config()

# hermes worker hosts
hostname = default("hostname", [])
worker_hosts = default("/clusterHostInfo/hermesonline_worker_hosts", [])


# zk hosts
zk_hosts = default("/clusterHostInfo/zookeeper_hosts", [])
hermes_zkConnectionString = util.zk_connection_string(zk_hosts, 2181)

# JAVA HOME
java_home = default("/hostLevelParams/java_home", "/usr/jdk64/jdk1.7.0_67")
# hermes port used
hermes_server_port = config['configurations']['online-hermes-properties']['hermes.server.port']
hermes_worker_port = config['configurations']['online-hermes-properties']['hermes.worker.port']
debug_jms_port = config['configurations']['online-hermes-properties']['debug.jms.port']
# hermes JVN setting
hermes_xms = config['configurations']['online-hermes-properties']['hermes.xms']
hermes_xmx = config['configurations']['online-hermes-properties']['hermes.xmx']
hermes_xmn = config['configurations']['online-hermes-properties']['hermes.xmn']

# master-ini.xml
hermes_user = config['configurations']['online-hermes-properties']['hermes.user']
hermes_group = config['configurations']['online-hermes-properties']['hermes.group']