首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在电子病历上重新启动hiveserver2

在电子病历上重新启动hiveserver2
EN

Stack Overflow用户
提问于 2016-02-20 20:24:07
回答 2查看 3.3K关注 0票数 3

我在我的EMR集群中用一个主程序和两个工作人员终止了hiveserver2进程(在找到了ps aux|grep -i hiveserver2 PID之后)。在杀死hiveserver2之前,我能够通过色调浏览和查询浏览器上的Hive。我试着用hive --service hiveserver2重新开始,但是我再也不能从色调连接,它要么挂起,要么说它不能连接到<publicDNS>:10000

我的用例是,我想在不关闭集群的情况下修改EMR集群的单元配置。有可能吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-02-13 23:45:47

代码语言:javascript
复制
initctl list
status hive-server2

sudo restart hive-server2
sudo stop hive-server2
sudo start hive-server2

如何在Amazon中重新启动服务?

票数 3
EN

Stack Overflow用户

发布于 2016-02-23 11:37:54

可以在启动群集之前添加单元配置,而不是在群集准备就绪之后添加。您可以在引导步骤中将它们作为配置设置添加。

例如,您可以使用以下语法(在java中)将配置添加到hive-site.xml中:

代码语言:javascript
复制
    Map<String,String> hiveProperties = new HashMap<String,String>();
    hiveProperties.put("hive.vectorized.execution.enabled","true");
    hiveProperties.put("hive.vectorized.execution.reduce.enabled","true");
    hiveProperties.put("hive.execution.engine","Tez");
    hiveProperties.put("hive.auto.convert.join","true");
    hiveProperties.put("hive.exec.parallel","true");

    Configuration myHiveConfig = new Configuration()
    .withClassification("hive-site")
    .withProperties(hiveProperties);

    List <Application> apps = new ArrayList<Application>();
    apps.add(new Application().withName("Hadoop"));
    apps.add(new Application().withName("Hive"));
    apps.add(new Application().withName("Spark"));
    //apps.add(new Application().withName("Pig"));
    //apps.add(new Application().withName("Zeppelin-Sandbox"));

    RunJobFlowRequest request = new RunJobFlowRequest()
    .withName("abc")
        .withReleaseLabel(emrVersion) //"emr-4.3.0"
    .withServiceRole("EMR_DefaultRole")
    .withConfigurations(myHiveConfig)
        .withInstances(
                  new JobFlowInstancesConfig()
                        .withInstanceCount(numberofInstances)
                        .withKeepJobFlowAliveWhenNoSteps(true)
                        .withTerminationProtected(false)
                        .withMasterInstanceType(mserverType)
                        .withSlaveInstanceType(sserverType) 
                  )
    .withApplications(apps)
    .withJobFlowRole("EMR_EC2_DefaultRole")
    .withSteps(generalSteps);

以下链接提供更多详细信息:

http://docs.aws.amazon.com/ElasticMapReduce/latest/ReleaseGuide/emr-configure-apps.html

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35528554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档