Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)

src/s/a/sahara-2014.1/sahara/plugins/vanilla/v1_2_1/versionhandler.py   sahara(Download)
                    '/etc/hadoop/topology.sh',
                    f.get_file_text(
                        'plugins/vanilla/v1_2_1/resources/topology.sh'))
                r.execute_command(
                    'sudo chmod +x /etc/hadoop/topology.sh'
        if c_helper.is_mysql_enable(cluster):
            sql_script = f.get_file_text(
                'plugins/vanilla/v1_2_1/resources/create_oozie_db.sql')
            files = {
                '/tmp/create_oozie_db.sql': sql_script
        if c_helper.is_mysql_enable(cluster):
            sql_script = f.get_file_text(
                'plugins/vanilla/v1_2_1/resources/create_hive_db.sql'
            )
            sql_script = sql_script.replace('pass',

src/s/a/sahara-HEAD/sahara/plugins/vanilla/v1_2_1/versionhandler.py   sahara(Download)
                    '/etc/hadoop/topology.sh',
                    f.get_file_text(
                        'plugins/vanilla/v1_2_1/resources/topology.sh'))
                r.execute_command(
                    'sudo chmod +x /etc/hadoop/topology.sh'
        if c_helper.is_mysql_enable(cluster):
            sql_script = f.get_file_text(
                'plugins/vanilla/v1_2_1/resources/create_oozie_db.sql')
            files = {
                '/tmp/create_oozie_db.sql': sql_script
        if c_helper.is_mysql_enable(cluster):
            sql_script = f.get_file_text(
                'plugins/vanilla/v1_2_1/resources/create_hive_db.sql'
            )
            sql_script = sql_script.replace('pass',

src/s/a/sahara-2014.1/sahara/plugins/vanilla/v2_3_0/config.py   sahara(Download)
    }
    post_conf_script = f.get_file_text(
        'plugins/vanilla/v2_3_0/resources/post_conf.template')
    post_conf_script = post_conf_script.format(**args)
 
            t_script = HADOOP_CONF_DIR + '/topology.sh'
            r.write_file_to(t_script, f.get_file_text(
                            'plugins/vanilla/v2_3_0/resources/topology.sh'),
                            run_as_root=True)
            r.execute_command('chmod +x ' + t_script, run_as_root=True)

src/s/a/sahara-HEAD/sahara/plugins/vanilla/v2_3_0/config.py   sahara(Download)
    }
    post_conf_script = f.get_file_text(
        'plugins/vanilla/v2_3_0/resources/post_conf.template')
    post_conf_script = post_conf_script.format(**args)
 
            t_script = HADOOP_CONF_DIR + '/topology.sh'
            r.write_file_to(t_script, f.get_file_text(
                            'plugins/vanilla/v2_3_0/resources/topology.sh'),
                            run_as_root=True)
            r.execute_command('chmod +x ' + t_script, run_as_root=True)

src/s/a/sahara-2014.1/sahara/plugins/vanilla/v2_3_0/run_scripts.py   sahara(Download)
            _start_mysql(r)
            sql_script = files.get_file_text(
                'plugins/vanilla/v2_3_0/resources/create_oozie_db.sql')
            r.write_file_to('/tmp/create_oozie_db.sql', sql_script)
            _oozie_create_db(r)

src/s/a/sahara-HEAD/sahara/plugins/vanilla/v2_3_0/run_scripts.py   sahara(Download)
            _start_mysql(r)
            sql_script = files.get_file_text(
                'plugins/vanilla/v2_3_0/resources/create_oozie_db.sql')
            r.write_file_to('/tmp/create_oozie_db.sql', sql_script)
            _oozie_create_db(r)

src/s/a/sahara-2014.1/sahara/utils/openstack/heat.py   sahara(Download)
def _load_template(template_name, fields):
    template_file = f.get_file_text('resources/%s' % template_name)
    return template_file.rstrip() % fields
 
 

src/s/a/sahara-2014.1/sahara/plugins/hdp/hadoopserver.py   sahara(Download)
    def configure_topology(self, topology_str, r):
        r.write_file_to(
            '/etc/hadoop/conf/topology.sh',
            f.get_file_text(
                'plugins/hdp/versions/version_1_3_2/resources/topology.sh'))

src/s/a/sahara-HEAD/sahara/utils/openstack/heat.py   sahara(Download)
def _load_template(template_name, fields):
    template_file = f.get_file_text('resources/%s' % template_name)
    return template_file.rstrip() % fields
 
 

src/s/a/sahara-HEAD/sahara/plugins/hdp/hadoopserver.py   sahara(Download)
    def configure_topology(self, topology_str, r):
        r.write_file_to(
            '/etc/hadoop/conf/topology.sh',
            f.get_file_text(
                'plugins/hdp/versions/version_1_3_2/resources/topology.sh'))

  1 | 2  Next