Support Questions

Find answers, ask questions, and share your expertise

specifying hdp repo via cloudbreak shell

avatar

Currently cloudbreak UI provides below screen to configure HDP repo. Does the cloudbreak-shell provide the same mechanism ? if so what would be the command ?

Thanks Santhosh

10749-screen-shot-2016-12-23-at-220109.png

1 ACCEPTED SOLUTION

avatar

below shell command works for me for both ambari and HDP repo

cluster create --version 2.X --stackRepoId HDP-2.X --stackBaseURL http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.X.X.0-154 --utilsRepoId HDP-UTILS-1.1.0.21 --utilsBaseURL http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 --stack HDP --verify true --os redhat7 --ambariRepoGpgKey http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.X.X.0-524/RPM-GPG-KEY/RPM-GP... --ambariRepoBaseURL http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.X.X.0-524 --ambariVersion 2.X.X.0-524 --enableSecurity true --kerberosMasterKey master --kerberosAdmin admin --kerberosPassword admin --wait true





View solution in original post

2 REPLIES 2

avatar

I think I found it, it is cluster create command

cloudbreak-shell>help cluster create

Keyword:                   cluster create

Description:               Create a new cluster based on a blueprint and optionally a recipe

 Keyword:                  userName

   Help:                   Username of the Ambari server

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: 'admin'




 Keyword:                  password

   Help:                   Password of the Ambari server

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: 'admin'




 Keyword:                  description

   Help:                   Description of the blueprint

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  ambariVersion

   Help:                   Ambari version: 2.4.0.0-748

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  ambariRepoBaseURL

   Help:                   Ambari repo base url: http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  ambariRepoGpgKey

   Help:                   Ambari repo GPG key url

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  stack

   Help:                   Stack definition name, like HDP

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  version

   Help:                   Stack definition version

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  os

   Help:                   Stack OS to select package manager, default is RedHat

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  stackRepoId

   Help:                   Stack repository id

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  stackBaseURL

   Help:                   Stack url

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  utilsRepoId

   Help:                   Stack utils repoId

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'




 Keyword:                  utilsBaseURL

   Help:                   Stack utils URL

   Mandatory:              false

   Default if specified:   '__NULL__'

   Default if unspecified: '__NULL__'

avatar

below shell command works for me for both ambari and HDP repo

cluster create --version 2.X --stackRepoId HDP-2.X --stackBaseURL http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.X.X.0-154 --utilsRepoId HDP-UTILS-1.1.0.21 --utilsBaseURL http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 --stack HDP --verify true --os redhat7 --ambariRepoGpgKey http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.X.X.0-524/RPM-GPG-KEY/RPM-GP... --ambariRepoBaseURL http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.X.X.0-524 --ambariVersion 2.X.X.0-524 --enableSecurity true --kerberosMasterKey master --kerberosAdmin admin --kerberosPassword admin --wait true