-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BIGTOP-4131: Add Tez component on Bigtop-3.3.0 stack
- Loading branch information
Showing
36 changed files
with
1,115 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...src/main/java/org/apache/bigtop/manager/server/command/stage/ComponentConfigureStage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.bigtop.manager.server.command.stage; | ||
|
||
import org.apache.bigtop.manager.server.command.task.ComponentConfigureTask; | ||
import org.apache.bigtop.manager.server.command.task.Task; | ||
|
||
public class ComponentConfigureStage extends AbstractComponentStage { | ||
|
||
public ComponentConfigureStage(StageContext stageContext) { | ||
super(stageContext); | ||
} | ||
|
||
@Override | ||
protected Task createTask(String hostname) { | ||
return new ComponentConfigureTask(createTaskContext(hostname)); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Configure " + stageContext.getComponentDTO().getDisplayName(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...r/src/main/java/org/apache/bigtop/manager/server/command/task/ComponentConfigureTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.bigtop.manager.server.command.task; | ||
|
||
import org.apache.bigtop.manager.common.enums.Command; | ||
|
||
public class ComponentConfigureTask extends AbstractComponentTask { | ||
|
||
public ComponentConfigureTask(TaskContext taskContext) { | ||
super(taskContext); | ||
} | ||
|
||
@Override | ||
protected Command getCommand() { | ||
return Command.CONFIGURE; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Configure " + taskContext.getComponentDisplayName() + " on " + taskContext.getHostname(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,5 @@ | |
], | ||
"KAFKA_BROKER-RESTART": [ | ||
"ZOOKEEPER_SERVER-RESTART" | ||
], | ||
"ZOOKEEPER_SERVER-STOP": [ | ||
"KAFKA_BROKER-STOP" | ||
] | ||
} |
54 changes: 54 additions & 0 deletions
54
...ager-server/src/main/resources/stacks/bigtop/3.3.0/services/tez/configuration/tez-env.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<configuration> | ||
<!-- tez-env.sh --> | ||
<property> | ||
<name>content</name> | ||
<display-name>tez-env template</display-name> | ||
<description>This is the freemarker template for tez-env.sh file</description> | ||
<value><![CDATA[ | ||
# Tez specific configuration | ||
export TEZ_CONF_DIR=${tez_conf_dir!} | ||
# Set HADOOP_HOME to point to a specific hadoop install directory | ||
export HADOOP_HOME=${hadoop_home!} | ||
# The java implementation to use. | ||
export JAVA_HOME=${java_home!} | ||
]]> | ||
</value> | ||
<attrs> | ||
<type>longtext</type> | ||
</attrs> | ||
</property> | ||
<property> | ||
<name>enable_heap_dump</name> | ||
<value>false</value> | ||
<description>Enable or disable taking Heap Dump. (true/false)</description> | ||
<display-name>Enable heap dump</display-name> | ||
</property> | ||
<property> | ||
<name>heap_dump_location</name> | ||
<value>/tmp</value> | ||
<description>Location for heap dump file</description> | ||
<display-name>Heap dump location</display-name> | ||
</property> | ||
</configuration> |
Oops, something went wrong.