tail -f /var/log/life
Tuesday, March 17, 2015
FileCrush replacement format
Error message:
-bash: --replacement=$1-${crush.timestamp}-${crush.task.num}-${crush.file.num}: bad substitution
Fix by using escape character in bash:
--replacement=\$1-\$\{crush.timestamp\}-\$\{crush.task.num\}-\$\{crush.file.num\}
Wednesday, March 4, 2015
Parse hosts file in Fabric
Add the following code to your fabfile.py
The "hosts_file" support comment and host sequence:
$ cat hosts_file
# This is comment. using # asprefix
hadoopdev01
hadoopprod[01-10]
#hadoopdev02
192.168.1.[1-200]
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)