Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
terraform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
HADOOP
terraform
Commits
8566a732
Commit
8566a732
authored
4 years ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Hadoop image: speed up - install everything with disabled daemons
parent
e0cfe38e
No related branches found
No related tags found
No related merge requests found
Pipeline
#418
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
image/hadoop.sh
+13
-1
13 additions, 1 deletion
image/hadoop.sh
with
13 additions
and
1 deletion
image/hadoop.sh
+
13
−
1
View file @
8566a732
#! /bin/sh
case
"
$BODI_RELEASE
"
in
stretch
)
db_daemon
=
'mysql'
jdbc
=
'libmysql-java'
os_maj
=
9
ver
=
'1.5.0'
# 1.4.0 1.5.0
;;
*
)
db_daemon
=
'mariadb'
jdbc
=
'libmariadb-java'
os_maj
=
10
ver
=
'1.5.0'
# 1.5.0
;;
esac
DAEMONS
=
"
$db_daemon
hadoop-hdfs-datanode hadoop-hdfs-namenode hadoop-httpfs hadoop-mapreduce-historyserver hadoop-yarn-nodemanager hadoop-yarn-resourcemanager hbase-master hbase-regionserver hive-metastore hive-server2 spark-history-server zookeeper-server"
wget https://dist.apache.org/repos/dist/release/bigtop/KEYS
-O
- |
chroot
$BODI_CHROOT_PATH
apt-key add -
cp
-vp
apt/
*
.pref
$BODI_CHROOT_PATH
/etc/apt/preferences.d/
cat
<<
EOF
>
$BODI_CHROOT_PATH
/etc/apt/sources.list.d/bigtop.list
...
...
@@ -22,7 +26,15 @@ EOF
# download and pre-install
chroot
$BODI_CHROOT_PATH
apt-get update
chroot
$BODI_CHROOT_PATH
apt-get
install
-y
hadoop hadoop-client hadoop-hdfs hadoop-mapreduce hadoop-yarn hbase hive-jdbc python-scipy zookeeper
chroot
$BODI_CHROOT_PATH
apt-get
install
-dy
hadoop-doc hadoop-hdfs-namenode hadoop-httpfs hadoop-hdfs-datanode hadoop-mapreduce-historyserver hadoop-yarn-resourcemanager hadoop-yarn-nodemanager hbase-master hbase-regionserver hive hive-hbase hive-hcatalog hive-metastore hive-server2
$jdbc
maven ant mariadb-client mariadb-common mariadb-server spark-core spark-history-server spark-python zookeeper-server
for
d
in
$DAEMONS
;
do
echo
'#! /bin/sh'
>
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
chmod
+x
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
done
DEBIAN_FRONTEND
=
noninteractive
chroot
$BODI_CHROOT_PATH
apt-get
install
-o
'Dpkg::Options::=--force-confdef'
-o
'Dpkg::Options::=--force-confold'
-y
hadoop-doc hadoop-hdfs-namenode hadoop-httpfs hadoop-hdfs-datanode hadoop-mapreduce-historyserver hadoop-yarn-resourcemanager hadoop-yarn-nodemanager hbase-master hbase-regionserver hive hive-hbase hive-hcatalog hive-metastore hive-server2
$jdbc
maven ant mariadb-client mariadb-common mariadb-server spark-core spark-history-server spark-python zookeeper-server
for
d
in
$DAEMONS
;
do
mv
-v
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
.dpkg-dist
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
done
chroot
$BODI_CHROOT_PATH
systemctl disable
${
DAEMONS
}
# setup
cp
-vp
Puppetfile
$BODI_CHROOT_PATH
/etc/puppet/code/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment