~bigdata-dev/charms/trusty/hdp-accumulo/trunk

« back to all changes in this revision

Viewing changes to hooks/common.py

  • Committer: amir sanjar
  • Date: 2014-10-15 01:25:43 UTC
  • Revision ID: amir.sanjar@canonical.com-20141015012543-144w4yem4f8zisz0
adding tracer support

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
accumuli_env_script_path = os.path.join(os.path.sep, accumulo_conf_dir, "accumulo-site.xml")
10
10
accumulo_masters_file = os.path.join(os.path.sep, accumulo_conf_dir, "masters" )
11
11
accumulo_slaves_file = os.path.join(os.path.sep, accumulo_conf_dir, "slaves" )
12
 
bash_rc = os.path.join(os.path.sep, "home","ubuntu", ".bashrc")
 
 
b'\\ No newline at end of file'
 
12
accumulo_gc_file = os.path.join(os.path.sep, accumulo_conf_dir, "gc" )
 
13
accumulo_tracers_file = os.path.join(os.path.sep, accumulo_conf_dir, "tracers" )
 
14
accumulo_monitor_file = os.path.join(os.path.sep, accumulo_conf_dir, "monitor" )
 
15
bash_rc = os.path.join(os.path.sep, "home","ubuntu", ".bashrc")
 
16
 
 
17
def sortIP(filepath):
 
18
    with open(filepath, "rb+") as f1:
 
19
        lines = f1.readlines()
 
20
        lines.sort()
 
21
        f1.seek(0)
 
22
        f1.writelines(lines)
 
 
b'\\ No newline at end of file'