Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 47 additions & 44 deletions CDH_upgrade_scenario/step7.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ To view the content of the file, execute the following
<li><strong>Identification</strong></li>
<br>
<b>Below is the example snippet for identification:</b>
<br>
"distro_id": "bluedata/cdh515_centos7x"<br>
"label": {<br>
"name": ""name": "CDH 5.15.0 on 7x with Cloudera Manager",<br>
"description": "CDH 5.15.0 with MRv1/YARN and HBase support. Includes Pig, Hive, Hue and Spark."<br>
},<br>
"version": "1.7",<br>
"epic_compatible_versions": ["3.4"],<br>
"categories": [ "Hadoop", "HBase" ],<br>

<br>
<pre class="file">
"distro_id": "bluedata/cdh515_centos7x"
"label": {
"name": ""name": "CDH 5.15.0 on 7x with Cloudera Manager",
"description": "CDH 5.15.0 with MRv1/YARN and HBase support. Includes Pig, Hive, Hue and Spark."
},
"version": "1.7",
"epic_compatible_versions": ["3.4"],
"categories": [ "Hadoop", "HBase" ],
</pre>

<strong>distro_id </strong> is unique identifier for either a Catalog entry or a versioned set of Catalog entries.
<br>
<br>The <strong>label</strong> is a property contains the following parameters:<br>
Expand All @@ -48,17 +49,19 @@ Name and distro_id needs to be updated based on the version of the CDH image to
<li><strong>Components</strong></li>
<br>
<b>Below is the example snippet for components:</b>
<br>
"image": {<br>

<pre class="file">
"image": {
"checksum": "65cd4ffd0cac3feec3e0719ae4f3dbcd",
"source_file": "bluedata-cdh5122_centos7x-centos7-2.0.tar.gz"<br>
},<br>
"setup_package": {<br>
"source_file": "bluedata-cdh5122_centos7x-centos7-2.0.tar.gz"
},
"setup_package": {
"config_api_version": 7,
<br> "checksum": "a7ea64f9b1de60ab9f87d76e2f571069",
<br> "source_file": "cdh5-cm-setup.tgz"<br>
},<br>
<br>
<br> "source_file": "cdh5-cm-setup.tgz"
},
</pre>

<br><strong>image</strong> is a property that identifies the location for the image used to launch virtual nodes for this Catalog entry.
<br>
<br><strong>setup_package</strong> is similar to the image property except for the configuration scripts package that runs inside the launched virtual node.
Expand All @@ -67,39 +70,39 @@ Name and distro_id needs to be updated based on the version of the CDH image to
<br>
<li><strong>Services</strong></li><br>
<b>Below is the example snippet for services:</b>
<br>
"services": [<br>
{<br>
"id": "hbase_master",<br>
"exported_service": "hbase",<br>
"label": {<br>
"name": "HMaster"<br>
},<br>
"endpoint" : {<br>
"url_scheme" : "http",<br>
"port" : "60010",<br>
"path" : "/",<br>
"is_dashboard" : true<br>
}<br>
},<br>
<pre class="file">
"services": [
{
"id": "hbase_master",
"exported_service": "hbase",
"label": {
"name": "HMaster"
},
"endpoint" : {
"url_scheme" : "http",
"port" : "60010",
"path" : "/",
"is_dashboard" : true
}
},
</pre>
<br>
In this example, services is a list of service objects.
<br>The defined <strong>services</strong> will be referenced by other elements of this JSON file to determine which services are active on which nodes within the cluster. <br>
<br>
<li><strong>Node Roles</strong></li>

<br><b>The example snippet for Node Roles:</b>
<br>
"node_roles": [<br>
{<br>
"id": "controller",<br>
"cardinality": "1",<br>
"anti_affinity_group_id": "CM",<br>
"min_cores": "4",<br>
"min_memory": "12288"<br>
},<br>
<br>
<pre class="file">
"node_roles": [
{
"id": "controller",
"cardinality": "1",
"anti_affinity_group_id": "CM",
"min_cores": "4",
"min_memory": "12288"
},
</pre>

In this example,<strong>node_roles</strong> is a list of objects describing roles that may be deployed for this Catalog entry. Each role is a particular configuration instantiated from the entry's virtual node image and configured by the setup scripts<br>
<li><strong>Configuration</strong></li>
Expand Down
4 changes: 2 additions & 2 deletions Centos/step1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Let's build a CentOS 7 base image.

Create a directory for base images and navigate to it

`mkdir -p ~/src/base_images.`{{execute}}
`mkdir -p ~/src/base_images`{{execute}}

`cd ~/src/base_images.`{{execute}}
`cd ~/src/base_images`{{execute}}

You are in the base image directory.
4 changes: 2 additions & 2 deletions Centos/step3.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
To add your organisation name to the build, run the following command:

Here we have used
Organization name as BlueData
Organization name as bluedata

`export BASE_IMG_ORGNAME='BlueData'`{{execute}}
`export BASE_IMG_ORGNAME='bluedata'`{{execute}}

To identify your build, you add a build version to image. To do so run the following command:

Expand Down
27 changes: 27 additions & 0 deletions environments/bluedata-workbench/build/1_configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
yum install -y python-pip
pip install --upgrade setuptools
pip install --upgrade requests
pip install --upgrade argparse

pip install --upgrade pip
pip install --upgrade bdworkbench
yum install -y epel-release

yum install -y python-requests python-setuptools python-argparse python-pip

yum install wget -y
wget https://www.dropbox.com/s/xyv64z1xt9l6lw7/bdcatalog-centos7-bluedata-cdh514_centos7x-1.7.tar
tar xvf bdcatalog-centos7-bluedata-cdh514_centos7x-1.7.tar
chmod +x bdcatalog-centos7-bluedata-cdh514_centos7x-1.7.bin

wget https://www.dropbox.com/s/r4m3bba2qtueu5q/bdcatalog-centos7-bluedata-spark221-1.0.bin.tar
tar xvf bdcatalog-centos7-bluedata-spark221-1.0.bin.tar
chmod +x bdcatalog-centos7-bluedata-spark221-1.0.bin

wget https://www.dropbox.com/s/2mh0pzsq1092xr8/bdcatalog-centos7-bluedata-hdp25-ambari-3.3.bin.tar.gz
tar xvf bdcatalog-centos7-bluedata-hdp25-ambari-3.3.bin.tar.gz
chmod +x bdcatalog-centos7-bluedata-hdp25-ambari-3.3.bin

wget https://www.dropbox.com/s/wbnr83q26przbs6/appconfig.zip
yum install unzip -y
unzip appconfig.zip