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
03b905e8
Commit
03b905e8
authored
Mar 19, 2021
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Hadoop: local mirror for BigTop for image creation speedup
parent
ca04c3ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
image/hadoop.sh
+8
-3
8 additions, 3 deletions
image/hadoop.sh
with
8 additions
and
3 deletions
image/hadoop.sh
+
8
−
3
View file @
03b905e8
...
@@ -18,9 +18,9 @@ DAEMONS="$db_daemon krb5-admin-server krb5-kdc krb5-kpropd hadoop-hdfs-datanode
...
@@ -18,9 +18,9 @@ DAEMONS="$db_daemon krb5-admin-server krb5-kdc krb5-kpropd hadoop-hdfs-datanode
wget https://dist.apache.org/repos/dist/release/bigtop/KEYS
-O
- |
chroot
$BODI_CHROOT_PATH
apt-key add -
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/
cp
-vp
apt/
*
.pref
$BODI_CHROOT_PATH
/etc/apt/preferences.d/
cat
<<
EOF
>
$BODI_CHROOT_PATH
/etc/apt/sources.list.d/bigtop.list
cat
<<
EOF
>
$BODI_CHROOT_PATH
/etc/apt/sources.list.d/bigtop.list
# initial setup
# initial setup
(local mirror)
deb http://
repos.bigtop.apache.org/releases
/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
deb http://
scientific.zcu.cz/repos/hadoop/bigtop
/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
deb-src http://
repos.bigtop.apache.org/releases
/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
deb-src http://
scientific.zcu.cz/repos/hadoop/bigtop
/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
EOF
EOF
# download and pre-install
# download and pre-install
...
@@ -36,6 +36,11 @@ for d in $DAEMONS; do
...
@@ -36,6 +36,11 @@ for d in $DAEMONS; do
mv
-v
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
.dpkg-dist
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
mv
-v
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
.dpkg-dist
$BODI_CHROOT_PATH
/etc/init.d/
${
d
}
done
done
chroot
$BODI_CHROOT_PATH
systemctl disable
${
DAEMONS
}
chroot
$BODI_CHROOT_PATH
systemctl disable
${
DAEMONS
}
cat
<<
EOF
>
$BODI_CHROOT_PATH
/etc/apt/sources.list.d/bigtop.list
# initial setup
deb http://repos.bigtop.apache.org/releases/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
deb-src http://repos.bigtop.apache.org/releases/
${
ver
}
/debian/
${
os_maj
}
/amd64 bigtop contrib
EOF
# setup
# setup
cp
-vp
Puppetfile
$BODI_CHROOT_PATH
/etc/puppet/code/
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