Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
rebuild ci to compatible apache (#184)
* rebuild ci to compatible apache
- Loading branch information
Showing
5 changed files
with
82 additions
and
28 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
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa | ||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | ||
chmod 0600 ~/.ssh/authorized_keys | ||
ssh-keyscan -H localhost >> ~/.ssh/known_hosts | ||
chmod 0600 ~/.ssh/known_hosts | ||
eval `ssh-agent` | ||
ssh-add ~/.ssh/id_rsa | ||
|
||
sudo wget http://archive.apache.org/dist/hadoop/common/hadoop-3.3.2/hadoop-3.3.2.tar.gz | ||
|
||
tar -zxf hadoop-3.3.2.tar.gz -C /opt | ||
cd /opt | ||
mv hadoop-3.3.2 hadoop | ||
cd hadoop | ||
pwd | ||
|
||
echo "export HADOOP_HOME=/opt/hadoop" >> ~/.bashrc | ||
echo "export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin" >> ~/.bashrc | ||
|
||
source ~/.bashrc | ||
|
||
tee etc/hadoop/core-site.xml <<EOF | ||
<configuration> | ||
<property> | ||
<name>fs.defaultFS</name> | ||
<value>hdfs://localhost:9000</value> | ||
</property> | ||
</configuration> | ||
EOF | ||
|
||
tee etc/hadoop/hdfs-site.xml <<EOF | ||
<configuration> | ||
<property> | ||
<name>dfs.replication</name> | ||
<value>1</value> | ||
</property> | ||
<property> | ||
<name>dfs.secondary.http.address</name> | ||
<value>localhost:9100</value> | ||
</property> | ||
</configuration> | ||
EOF | ||
|
||
bin/hdfs namenode -format | ||
sbin/start-dfs.sh | ||
jps |
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
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube | ||
sudo mkdir -p /usr/local/bin/ | ||
sudo install minikube /usr/local/bin/ | ||
|
||
minikube start --vm-driver=docker --kubernetes-version ${KUBERNETES_VERSION} || exit 1 |
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