Member since
09-11-2014
21
Posts
0
Kudos Received
0
Solutions
05-21-2018
06:10 PM
You will need to migrate the backend database to the new host. How to do it will be subject to which DB you are using. Please refer to the DB vendor for details. Once that DB migrate is done, then you can remove sentry and add sentry again to the new host as normal.
... View more
03-20-2018
02:45 PM
#!/usr/bin/env python import ssl,sys,time from cm_api.api_client import ApiResource from cm_api.endpoints.types import ApiClusterTemplate from cm_api.endpoints.cms import ClouderaManager from cm_api.endpoints import clusters, events, hosts, external_accounts, tools from cm_api.endpoints import types, users, timeseries, roles, services ssl._create_default_https_context = ssl._create_unverified_context try: cm = ApiResource("CM_SERVER","7183","admin","CM_PASS","true","15") cluster = cm.get_cluster("CLUSTER_NAME") except: print "Failed log into cluster %s" % ("CLUSTER_NAME") sys.exit(0) servers = [ "server1.company.com", "server2.company.com", "server3.company.com"] s = cluster.get_service("solr") ra = [] for r in s.get_roles_by_type("SOLR_SERVER"): hostname = cm.get_host(r.hostRef.hostId).hostname if hostname in servers: ra.append([hostname,r]) ra.sort() print "\nWill restart %s SOLR instances" % len(ra) for hostname,r in ra: print "\nRestarting SOLR on %s" % (hostname) s.restart_roles(r.name) r = s.get_role(r.name) wait = time.time() + 180 # three minutes while r.roleState != "STARTED": print "Role State = %s" % (r.roleState) print "Waiting for role state to be STARTED" print time.strftime("%H:%M:%S") if time.time() > wait: print "SOLR failed to restart on %s" % (hostname) sys.exit(1) time.sleep(10) r = s.get_role(r.name) print "SOLR restarted on %s" % (hostname) print "\nAll SOLR roles restarted" sys.exit(0)
... View more
12-09-2016
08:22 AM
1 Kudo
You should be fine. By design, Cloudera Manager does not remove any data from CDH. To rebuild, you would basically add the services that you had before and choose the same locations for data that you had previously. As mentioned, you could certainly use the 6-month-old database, too... CM will upgrade it the first time it starts. Either way, your HDFS will not have been touched by the process of reinstalling Cloudera Manager and readding the services. You will need to regenerate credentials after configuring Kerberos as the keytabs are stored in Cloudera Manager's database. That will also not impact data, but it is another task you will need to perform. Ben
... View more
10-06-2016
07:34 PM
1 Kudo
Hello, The AD certificate goes in the JVM keystore on CM: 1. On the domain controller, export the certificate in the "Base-64 encoded X.509 (.CER) format. 2. Copy the file to the Cloudera Manager host using an SCP/SSH tool such as WinSCP. 3. Import the certificate into your JVM keystore: keytool -import -alias <alias-for-cert> -file <path-to-cert> -keystore <path-to-keystore> -storepass <keystore password> Note: The truststore is usually located at: $JAVA_HOME/jre/lib/security/cacerts.
... View more