Browse Source

Merge Ubuntu and Fedora instructions for first-boot

Implements: blueprint merge-dib-hadoop-elements
Change-Id: Ie795be74adbbc6c742b2ffeb6e93ef3b93781aa3
tags/0.2.1.rc1
Matthew Farrellee 5 years ago
parent
commit
4e8525f6fb
1 changed files with 14 additions and 5 deletions
  1. 14
    5
      elements/hadoop_fedora/first-boot.d/99-setup

+ 14
- 5
elements/hadoop_fedora/first-boot.d/99-setup View File

@@ -1,13 +1,22 @@
1 1
 #!/bin/bash
2
+
3
+# Common
4
+chown root:root /mnt
5
+mkdir -p /var/run/hadoop ; chown hadoop:hadoop /var/run/hadoop
6
+mkdir -p /mnt/log/hadoop ; chown hadoop:hadoop /mnt/log/hadoop
7
+
8
+# Unique to Ubuntu
9
+#mkdir /run/hadoop
10
+#chown hadoop:hadoop /run/hadoop/
11
+#mkdir -p /home/ubuntu/.ssh
12
+#touch /home/ubuntu/.ssh/authorized_keys
13
+#chown -R ubuntu:ubuntu /home/ubuntu
14
+
15
+# Unique to Fedora
2 16
 sleep 10
3 17
 rm /etc/resolv.conf
4 18
 service network restart
5 19
 chown -R ec2-user:ec2-user /home/ec2-user
6 20
 chown -R ec2-user:ec2-user /etc/hadoop
7
-mkdir -p /var/run/hadoop
8
-chown root:root /mnt
9
-mkdir -p /mnt/log/hadoop
10
-chown hadoop:hadoop /var/run/hadoop
11
-chown hadoop:hadoop /mnt/log/hadoop
12 21
 #TODO: configure iptables (https://bugs.launchpad.net/savanna/+bug/1195744)
13 22
 iptables -F

Loading…
Cancel
Save