IBM Support

Setting up local repositories for Big SQL - Hadoop Dev

Technical Blog Post


Abstract

Setting up local repositories for Big SQL - Hadoop Dev

Body

This article describes how to set up a local repository in Rhel6.

Download the compressed archive file for Big SQL:

  
# cd /tmp # wget https://...../biginsights_hdp_TRUNK.el6.x86_64.tar.gz

Install packages for create repo, http server

  
# yum install createrepo # yum install httpd

Start apache web server :

  
# apachectl start

Prepare repo directory under /var/www

  
# mkdir /var/www/html/repos # cd /var/www/html/repos

Untar the archive under /var/ww/html/repos

  
# tar xzf /tmp/biginsights_hdp_TRUNK.el6.x86_64.tar.gz # rm -f /tmp/biginsights_hdp_TRUNK.el6.x86_64.tar.gz

Generate the repo using createrepo

  
# createrepo /var/www/html/repos/BigInsights-Valuepacks/RHEL6/x86_64/TRUNK

Find repoinfo.xml in Ambari-Server host

  
find . -name repoinfo.xml /var/lib/ambari-server/resources/stacks/HDP/2.4/repos/repoinfo.xml

Add this to repoinfo.xml

  
<repo><baseurl><http://myhost.domain.com/repos/BigInsights-Valuepacks/RHEL6/x86_64/TRUNK</baseurl><repoid>BIGINSIGHTS-VALUEPACK-1.2.0.0</repoid<>reponame>BIGINSIGHTS-VALUEPACK-1.2.0.0</reponame></repo></os>

Restart Ambari-Server.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

UID

ibm16260041