Hortonworks.com
  • Explore
    • All Tags
    • All Questions
    • All Articles
    • All Ideas
    • All Repos
    • All SKB
    • All Users
    • All Badges
    • Leaderboard
  • Create
    • Ask a question
    • Create Article
    • Post Idea
    • Add Repo
  • Tracks
    • All Tracks
    • Community Help
    • Cloud & Operations
    • CyberSecurity
    • Data Ingestion & Streaming
    • Data Processing
    • Data Science & Advanced Analytics
    • Design & Architecture
    • Governance & Lifecycle
    • Hadoop Core
    • Sandbox & Learning
    • Security
    • Solutions
  • Login
HCC Hortonworks Community Connection
  • Home /
  • Solutions /
  • Home /
  • Solutions /
avatar image

What are the steps to use Custom Hostname for Cloudbreak created cluster using CLI?

Anchal Sharma created · Feb 07 at 04:31 PM · edited · Feb 08 at 04:30 PM
avatar image
0

SupportKB

Problem Description:

When using Cloudbreak (2.7) to launch HDP cluster, by default it takes hostname as ip-XX-XXX-XX-XX. What are the steps to use custom hostname through CLI? 


Cause:

Solution:
To setup custom hostnames, perform either of the following: 
  • Follow the steps mentioned in documentation at Using custom hostnames based on DNS. 
  • Or, implement custom domain and custom hostname in a blueprint and deploy the cluster through the Cloudbreak CLI. 

Add the following block in the CLI cluster JSON template as top level item to define the custom hostname: 
"customDomain": { 
"customDomain": "hortonworks.com", 
"customHostname": "test" 
},
The VM names will be like test0, test1, test2.. test3.hortonworks.com.

To determine where this customDomain setting needs to be added in the template file, obtain the cluster template JSON file at the end of the cluster creation steps by clicking on the Show CLI Command button at the bottom of the screen. 

The cluster needs to be installed through CLI with example command with a cluster template JSON file as input file, which has the customDomain setting added to it: 
cb cluster create --name <cluster_name> --cli-input-json <template.json>


Reference Create Cluster

About:
This article created by Hortonworks Support (Article: 000008102) on 2019-02-06 16:55
OS: Linux
Type: Installation
Version: n/a
Support ID: 000008102
thub.nodes.view.add-new-comment
solutionhwsupportCloudbreak
Add comment · Show 2
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 5 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

avatar image Dominika Bialek · Feb 07 at 06:25 PM 0
Share

Documentation link: https://docs.hortonworks.com/HDPDocuments/Cloudbreak/Cloudbreak-2.9.0/advanced-cluster-options/content/cb_custom-hostnames.html

avatar image Vidya S Madabhushi ♦ Dominika Bialek · Feb 11 at 04:51 AM 0
Share

@Dominika Bialek Thank you for bringing this to our attention, the link is fixed now.

Regards,

Vidya

avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image

Related posts

ERROR:"There are stopped and running Ambari services as well. Restart or stop all of them and try syncing later." when scaling up Cluster on Cloudbreak

ERROR:"Unable to find image 'alpine:latest' locally" displayed by cbd genrate when using Docker images present locally

Error:"PANIC: could not locate a valid checkpoint record" when starting Cloudbreak

"java.util.concurrent.ExecutionException: com.sequenceiq.cloudbreak.orchestrator.exception.CloudbreakOrchestratorFailedException" occurs as Autoscale down fails with inconsistencies between Ambari and stack in CloudBreak

Error:"Image opt-in could not be validated for AMI 'ami-7cb35904'" when deploying a cluster on AWS

Error: "Failed to connect to bootstrap app"when deploying a cluster though Cloudbreak

Cloudbreak build of HDP/Ambari displays Quick Links using IP address instead of FQDNs

ERROR:"Error reading entity from input stream for cloudbreak 2.4 or later" when creating a new cluster on OpenStack using Cloudbreak

How to change the admin user of the CloudBreak UI?

Error:"java.lang.IllegalArgumentException: requirement failed" when starting a Kafka broker

This website uses cookies for analytics, personalisation and advertising. To learn more or change your cookie settings, please read our Cookie Policy. By continuing to browse, you agree to our use of cookies.

HCC Guidelines | HCC FAQs | HCC Privacy Policy | Privacy Policy | Terms of Service

© 2011-2019 Hortonworks Inc. All Rights Reserved.

Hadoop, Falcon, Atlas, Sqoop, Flume, Kafka, Pig, Hive, HBase, Accumulo, Storm, Solr, Spark, Ranger, Knox, Ambari, ZooKeeper, Oozie and the Hadoop elephant logo are trademarks of the Apache Software Foundation.

  • Anonymous
  • Login
  • Create
  • Ask a question
  • Create Article
  • Post Idea
  • Add Repo
  • Create SupportKB
  • Tracks
  • Community Help
  • Cloud & Operations
  • CyberSecurity
  • Data Ingestion & Streaming
  • Data Processing
  • Data Science & Advanced Analytics
  • Design & Architecture
  • Governance & Lifecycle
  • Hadoop Core
  • Sandbox & Learning
  • Security
  • Solutions
  • Explore
  • All Tags
  • All Questions
  • All Articles
  • All Ideas
  • All Repos
  • All SKB
  • All Users
  • Leaderboard
  • All Badges