You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sahara-image-elements/elements
Jeremy Freudberg ded80db266
Fix URL of Maven Central Repository
3 years ago
..
ambari Remove CentOS6/RHEL6 support 5 years ago
apt-mirror Improvements to README.rst of elements 8 years ago
centos-mirror Improvements to README.rst of elements 8 years ago
disable-firewall Remove CentOS6/RHEL6 support 5 years ago
extjs Update the links to artifacts (removing sahara-files too) 5 years ago
fedora-mirror Improvements to README.rst of elements 8 years ago
hadoop firstboot: make rc-local start after cloud-init 4 years ago
hadoop-cdh Fix URL of Maven Central Repository 3 years ago
hadoop-cloudera archive-primary.cloudera.com -> archive.cloudera.com 4 years ago
hadoop-mapr Remove CentOS6/RHEL6 support 5 years ago
hdp-local-mirror Remove CentOS6/RHEL6 support 5 years ago
hive Add support to build 2.8.2 image 5 years ago
java Fix linting (both dib-lint and bashate) 3 years ago
kdc Update the links to artifacts (removing sahara-files too) 5 years ago
mysql Remove CentOS6/RHEL6 support 5 years ago
nc Fix linting (both dib-lint and bashate) 3 years ago
nfs-shares Fix linting (both dib-lint and bashate) 3 years ago
ntp Add elements for sync time on VM 8 years ago
oozie Add support to build 3.0.1 image 5 years ago
openjdk Fix linting (both dib-lint and bashate) 3 years ago
oracle-java Fix pep8 issues (environment file should not be executable) 6 years ago
root-passwd Improvements to README.rst of elements 8 years ago
s3_hadoop Fix URL of Maven Central Repository 3 years ago
sahara-version Fix linting (both dib-lint and bashate) 3 years ago
spark Totally rewrite s3_hadoop 5 years ago
ssh Remove CentOS6/RHEL6 support 5 years ago
storm Fix linting (both dib-lint and bashate) 3 years ago
swift_hadoop Add support to build 3.0.1 image 5 years ago
xfs-tools Install xfsprogs for ability to formatting volumes in XFS FS 8 years ago
zookeeper Fix linting (both dib-lint and bashate) 3 years ago
.gitignore Add a .gitignore. 10 years ago
README.rst Update the links to artifacts (removing sahara-files too) 5 years ago

README.rst

Diskimage-builder tools for creation cloud images

Steps how to create cloud image with Apache Hadoop installed using diskimage-builder project:

  1. Clone the repository "https://github.com/openstack/diskimage-builder" locally. Note: Make sure you have commit 43b96d91 in your clone, it provides a mapping for default-jre.
git clone https://github.com/openstack/diskimage-builder
  1. Add ~/diskimage-builder/bin/ directory to your path (for example, PATH=$PATH:/home/$USER/diskimage-builder/bin/ ).
  2. Export the following variable ELEMENTS_PATH=/home/$USER/diskimage-builder/elements/ to your .bashrc. Then source it.
  3. Copy file "img-build-sudoers" from ~/disk-image-builder/sudoers.d/ to your /etc/sudoers.d/.
chmod 440 /etc/sudoers.d/img-build-sudoers
chown root:root /etc/sudoers.d/img-build-sudoers
  1. Export sahara-elements commit id variable (from sahara-extra directory):
export SAHARA_ELEMENTS_COMMIT_ID=`git show --format=%H | head -1`
  1. Move elements/ directory to disk-image-builder/elements/
mv elements/*  /path_to_disk_image_builder/diskimage-builder/elements/
  1. Export DIB commit id variable (from DIB directory):
export DIB_COMMIT_ID=`git show --format=%H | head -1`
  1. Call the following command to create cloud image is able to run on OpenStack:

8.1. Ubuntu cloud image

JAVA_FILE=jdk-7u21-linux-x64.tar.gz DIB_HADOOP_VERSION=1.2.1 OOZIE_FILE=oozie-4.0.0.tar.gz disk-image-create base vm hadoop oozie ubuntu root-passwd -o ubuntu_hadoop_1_2_1

8.2. Fedora cloud image

JAVA_FILE=jdk-7u21-linux-x64.tar.gz DIB_HADOOP_VERSION=1.2.1 OOZIE_FILE=oozie-4.0.0.tar.gz DIB_IMAGE_SIZE=10 disk-image-create base vm fedora hadoop root-passwd oozie -o fedora_hadoop_1_2_1

Note: If you are building this image from Ubuntu or Fedora 18 OS host, you should add element 'selinux-permissive'.

JAVA_FILE=jdk-7u21-linux-x64.tar.gz DIB_HADOOP_VERSION=1.2.1 OOZIE_FILE=oozie-4.0.0.tar.gz DIB_IMAGE_SIZE=10 disk-image-create base vm fedora hadoop root-passwd oozie selinux-permissive -o fedora_hadoop_1_2_1

In this command 'DIB_HADOOP_VERSION' parameter is version of hadoop needs to be installed. You can use 'JAVA_DOWNLOAD_URL' parameter to specify download link for JDK (tarball or bin). 'DIB_IMAGE_SIZE' is parameter that specifes a volume of hard disk of instance. You need to specify it because Fedora and CentOS don't use all available volume. If you have already downloaded the jdk package, move it to "elements/hadoop/install.d/" and use its filename as 'JAVA_FILE' parameter. In order of working EDP components with Sahara DIB images you need pre-installed Oozie libs. Use OOZIE_DOWNLOAD_URL to specify link to Oozie archive (tar.gz). For example the Oozie libraries for Hadoop 2.7.1 are available from: https://tarballs.openstack.org/sahara-extra/dist/oozie/oozie-4.2.0-hadoop-2.7.1.tar.gz If you have already downloaded archive, move it to "elements/oozie/install.d/" and use its filename as 'OOZIE_FILE' parameter.