μλ
νμΈμ. νμ λ΅λ³ κ°μ¬ λ립λλ€.
μΌλ¨, deploy μμλ λ³λ€λ₯Έ λ¬Έμ κ° μκΈ°μ§λ μμ΅λλ€.
μλ λΈλ‘κ·Έμ μ κ° μ€μΉνλ κ³Όμ μ μ²μλΆν° μ μμ΅λλ€.
κ·Έλ¦¬κ³ , deploy μμ λ°μν λ‘κ·Έλ€μ μλμ κ°μ΅λλ€.
(λ³λ€λ₯Έ μ€λ₯ λ‘κ·Έλ λ°μνμ§ μμμ΅λλ€.)
[msc@arcusadmin scripts]$ ./arcus.sh deploy conf/test.json
Server Roles
Β Β Β Β {'zookeeper': ['192.168.0.71', '192.168.0.72', '192.168.0.73'], 'memcached': [u'192.168.0.71', u'192.168.0.71', u'192.168.0.72', u'192.168.0.72', u'192.168.0.73', u'192.168.0.73']}
[192.168.0.71] Executing task 'deploy'
[192.168.0.72] Executing task 'deploy'
[192.168.0.73] Executing task 'deploy'
[192.168.0.73] run: mkdir -p /work/package
[192.168.0.71] run: mkdir -p /work/package
[192.168.0.72] run: mkdir -p /work/package
[localhost] local: tar -czf /tmp/tmpXi4GbI/arcus.tar.gz -C /work/package arcus
[localhost] local: tar -czf /tmp/tmpGUAv5P/arcus.tar.gz -C /work/package arcus
[localhost] local: tar -czf /tmp/tmpQYVwIC/arcus.tar.gz -C /work/package arcus
[192.168.0.72] put: /tmp/tmpXi4GbI/arcus.tar.gz -> /work/package/arcus.tar.gz
[192.168.0.73] put: /tmp/tmpGUAv5P/arcus.tar.gz -> /work/package/arcus.tar.gz
[192.168.0.71] put: /tmp/tmpQYVwIC/arcus.tar.gz -> /work/package/arcus.tar.gz
[192.168.0.72] run: tar -xzf arcus.tar.gz
[192.168.0.73] run: tar -xzf arcus.tar.gz
[192.168.0.71] run: tar -xzf arcus.tar.gz
[192.168.0.73] run: rm -f arcus.tar.gz
[192.168.0.72] run: rm -f arcus.tar.gz
[localhost] local: rm -rf /tmp/tmpGUAv5P
[localhost] local: rm -rf /tmp/tmpXi4GbI
[192.168.0.71] run: rm -f arcus.tar.gz
[localhost] local: rm -rf /tmp/tmpQYVwIC
Done.
[msc@arcusadmin scripts]$Β
μμ κ°μ΄ deploy ν ν, zookeeper init μ νλ©΄, μλμ κ°μ μ€λ₯κ° λ°μν©λλ€.
[msc@arcusadmin scripts]$ ./arcus.sh zookeeper init
Server Roles
Β Β Β Β {'zookeeper': ['192.168.0.71', '192.168.0.72', '192.168.0.73'], 'memcached': []}
====== Task: zk_config
[192.168.0.71] Executing task 'zk_config_id'
[192.168.0.71] run: mkdir -p data
[192.168.0.71] run: echo 1 > data/myid
[192.168.0.71] put: <file obj> -> /work/package/arcus/zookeeper/conf/zoo.cfg
[192.168.0.72] Executing task 'zk_config_id'
[192.168.0.72] run: mkdir -p data
[192.168.0.72] run: echo 2 > data/myid
[192.168.0.72] put: <file obj> -> /work/package/arcus/zookeeper/conf/zoo.cfg
[192.168.0.73] Executing task 'zk_config_id'
[192.168.0.73] run: mkdir -p data
[192.168.0.73] run: echo 3 > data/myid
[192.168.0.73] put: <file obj> -> /work/package/arcus/zookeeper/conf/zoo.cfg
Fatal error: run() received nonzero return code 1 while executing!
Requested: bin/zkServer.sh start
Executed: /bin/bash -l -c "cd /work/package/arcus/zookeeper && bin/zkServer.sh start"
Aborting.
Disconnecting from 192.168.0.72... done.
Disconnecting from 192.168.0.71... done.
Disconnecting from 192.168.0.73... done.
[msc@arcusadmin scripts]$
κ°λ¨ν ν
μ€νΈ ν μ μ© ν΄λ³΄λ €κ³ μμμ ν건λ°... μ΄κ±° ν
μ€νΈ λΆν° μ½μ§κ° μλ€μ ^^;;
μ λΆμμ λ‘κ·Έ μ€μ, cygpath λ λ μ λ°μνλ μ§ λͺ¨λ₯΄κ² μ΅λλ€.
centos λ₯Ό virtualbox μ μ€μΉ ν, μ¬μ©νλ κ² μΈλ°... γ
γ
2015λ
3μ 12μΌ λͺ©μμΌ μ€μ 11μ 18λΆ 48μ΄ UTC+9, WookHwan Choi λμ λ§: