-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn spark cluster - Security Features, Global Variables #8
Open
pranavmrane
wants to merge
13
commits into
master
Choose a base branch
from
yarn-spark-cluster
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f49082d
Global Variables Integrated
pranavmrane 917be6f
Security Features Added
pranavmrane 85ea362
Global Variables Bugs Fixed Using source
pranavmrane a75c436
Security Improvements, Readme Updated with SSH Tunneling
pranavmrane c23b18a
Client Code Added, Code Refinements Pending
pranavmrane bce5932
Client Integration completed, webHDFS enabled
pranavmrane 5a4c67d
Code Changes for making Image in Cloudlab
pranavmrane 77d6e26
Bug Fixes for making Cloudlab Image
pranavmrane 39825d7
webHDFS available using curl-REST API
pranavmrane 3e4c57f
Image Name Corrected in Readme file
pranavmrane 2be52aa
webHDFS disabled, image name updated
pranavmrane a38f883
HDFS api working from remote IPs
pranavmrane b33c89b
Host Verification Bug Solved by Pinging all Nodes
pranavmrane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 8 additions & 0 deletions
8
scripts/cluster/yarn_cluster_setup/configs/hadoop/hadoop-policy.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,8 @@ | ||
<?xml version="1.0"?> | ||
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | ||
<configuration> | ||
<property> | ||
<name>security.job.client.protocol.acl</name> | ||
<value> iotx-PG0</value> | ||
</property> | ||
</configuration> |
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 |
---|---|---|
@@ -1,21 +1,31 @@ | ||
#!/bin/bash | ||
|
||
source /etc/profile | ||
|
||
echo "STARTING HADOOP SERVICES" | ||
/usr/local/hadoop/sbin/start-dfs.sh | ||
|
||
/usr/local/hadoop/sbin/start-yarn.sh | ||
$HADOOP_HOME/sbin/start-dfs.sh | ||
|
||
$HADOOP_HOME/sbin/start-yarn.sh | ||
|
||
/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh start historyserver | ||
$HADOOP_HOME/sbin/mr-jobhistory-daemon.sh start historyserver | ||
|
||
/usr/local/hadoop/bin/hdfs dfsadmin -safemode leave | ||
$HADOOP_HOME/bin/hdfs dfsadmin -safemode leave | ||
|
||
echo "STARTING SPARK SERVICES" | ||
/spark-3.0.0-SNAPSHOT-bin-SparkFHE/sbin/start-all.sh | ||
$SPARK_HOME/sbin/start-all.sh | ||
|
||
echo "RUN jps - Java Virtual Machine Process Status Tool" | ||
jps | ||
|
||
echo "Get basic filesystem information and statistics." | ||
/usr/local/hadoop/bin/hdfs dfsadmin -report | ||
$HADOOP_HOME/bin/hdfs dfsadmin -report | ||
|
||
echo "Yarn Cluster is Active" | ||
|
||
master_node_ip_address=`hostname -i` | ||
|
||
echo "Yarn Cluster is Active" | ||
echo "YARN Interface Available At: "$master_node_ip_address":8088/" | ||
echo "Spark Interface Available At: "$master_node_ip_address":8080/" | ||
echo "NameNode Interface Available At: "$master_node_ip_address":50070/" | ||
echo "Job Master Interface Available At: "$master_node_ip_address":19888/" |
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#!/bin/bash | ||
|
||
source /etc/profile | ||
|
||
echo -e "STOPPING SPARK SERVICES" | ||
|
||
/spark-3.0.0-SNAPSHOT-bin-SparkFHE/sbin/stop-all.sh | ||
$SPARK_HOME/sbin/stop-all.sh | ||
|
||
echo -e "STOPPING HADOOP SERVICES" | ||
|
||
/usr/local/hadoop/sbin/mr-jobhistory-daemon.sh stop historyserver | ||
$HADOOP_HOME/sbin/mr-jobhistory-daemon.sh stop historyserver | ||
|
||
/usr/local/hadoop/sbin/stop-dfs.sh | ||
$HADOOP_HOME/sbin/stop-dfs.sh | ||
|
||
/usr/local/hadoop/sbin/stop-yarn.sh | ||
$HADOOP_HOME/sbin/stop-yarn.sh | ||
|
||
echo "Hadoop Cluster is Inactive Now" |
10 changes: 7 additions & 3 deletions
10
scripts/cluster/yarn_cluster_setup/test_scripts/run_spark_test_job_pi.sh
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#!/bin/bash | ||
|
||
source /etc/profile | ||
|
||
echo "SPARK TEST" | ||
/spark-3.0.0-SNAPSHOT-bin-SparkFHE/bin/spark-submit --class org.apache.spark.examples.SparkPi \ | ||
$SPARK_HOME/bin/spark-submit --class org.apache.spark.examples.SparkPi \ | ||
--master yarn \ | ||
--deploy-mode cluster \ | ||
--num-executors 1 \ | ||
--driver-memory 1g \ | ||
--executor-memory 512m \ | ||
--executor-cores 1 \ | ||
/spark-3.0.0-SNAPSHOT-bin-SparkFHE/examples/jars/spark-examples*.jar \ | ||
10 | ||
$SPARK_HOME/examples/jars/spark-examples*.jar \ | ||
10 | ||
|
||
echo "Stop Cluster If not in Use" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might also want to add a property in yarn-site.xml to enable the acl