Find and share helpful community-sourced technical articles
Recently active
QuestionWhere are Cloudera Altus Clusters created and how are Data Engineering jobs run? AnswerClusters are spun up and reside within customer's public cloud account. For example, in case of AWS, EC2 instances are spun-up and managed by Cloudera Altus in the subnet and VPC specified by customer created environment; These clusters handle specific Data Engineering workloads (Hive-on-Spark, Spark-on-YARN, MR2 on YARN, etc).
QuestionWhat are the various Cloudera Altus interfaces available and how can I access them? AnswerCloudera Altus is accessible via command line interface (CLI), console / graphical user interface (GUI) and via a software development kit (SDK) for use with Java. The Cloudera Altus Web console is available via: https://console.altus.cloudera.com/ Instructions for installing the Cloudera Altus CLI is available here (link to Cloudera Altus CLI Documentation) Additional details for the Cloudera Altus SDK and coding examples are available here (link to Cloudera Altus SDK) Additional details on interfaces are available in the Cloudera Altus Interfaces section of the Cloudera Altus Documentation.
QuestionAre there any current limitations with Cloudera Altus? AnswerDefault limit for commercial have the following default soft-limits: Up to 10 active clusters at any given timeLimit of 100 usersLimit of 10 defined Cloudera Altus environmentsIf there are needs required that will utilize beyond the current soft-limits, please reach out to Cloudera Support to request an increase. Users that are given access as part of a free trial will have no ability to create additional users and may have smaller limits.
QuestionCan I change an environment once created in Cloudera Altus? AnswerBy design, Cloudera Altus environments are not modifiable once created. To make a change to the environment, we recommend to clone the environment into a new one with the appropriate changes.
QuestionCan I use a bootstrap script to further configure the cluster? AnswerInstance bootstrap scripts are executed on all the cluster instances immediately after startup before any services are configured and started. You can use it to install additional OS packages or add application dependencies (e.g. copy a jar to the cluster, etc). This is not intended to be a mechanism for cluster configuration.
QuestionIs logging enabled by default for jobs run in Cloudera Altus Data Engineering? AnswerWhile we recommend enabling logging for troubleshooting Data Engineering jobs, It is not enabled by default. Details for enabling logging within the Cloudera Altus Environment Setup is available in the online doc Cloudera Altus Environment Setup:https://console.altus.cloudera.com/support/documentation.html?type=topics&page=ag_dataengr_get_start_env_setupNOTE: If logging is not enabled, cluster bundles that are automatically generated during shutdown of a Cloudera Altus-managed cluster will be lost.
QuestionWhat are the minimum and maximum cluster sizes? AnswerThe minimum cluster size is 3 worker nodes, 1 Master node, and 1 Cloudera Manager node, for a total of five nodes. The maximum cluster size varies based on cluster type and public cloud. Further information about this could be found in this Cloudera Altus Documentation section NOTE: Each cluster spun up by Cloudera Altus requires 2 additional (master) nodes, one for CM and the other for Master services used for each cluster. These 2 nodes are a hard-requirement per cluster as they're required for a functional cluster and will need to be accounted for when calculating the public cloud instance limits.
Use Cases: Seperate out hiveservers for batch jobs which can ensure user jobs or too many connections from users dont effect batch workloads or one groups workloads dont effect other group workloads.Secure hive connections through Knox which only works with http mode for hiveservers2.Custom configurations for different workloads such as different engine's MR or tez or anything else. Method:Use ambari config groups to customize the default hive.server2.zookeeper.namespace to something else other than default value “hiveserver2”Reference: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_hadoop-high-availability/content/ha-hs2-service-discovery.htmlhttp://docs.hortonworks.com/HDPDocuments/Ambari-2.5.0.3/bk_ambari-operations/content/using_host_config_groups.htmlCaveat: The beeline connection string will be different from the default one. The new one needs different value for the zooKeeperNamespace which can cause confusion. Example: I will be using Ambari 2.4.2 with HDP 2.3.2 b
These checklists help ensure that you avoid unexpected problems when adding new hosts to an HDP cluster. Preparation checklist (what to do before adding the new hosts via the Ambari Add Host wizard): Have you followed the guidance in the Ambari installation documentation (e.g. example install doc is here)? It is recommended to follow the instructions for the HDP version that is installed on the cluster (go to http://docs.hortonworks.com). Does your file system partitioning scheme, storage options, memory, network, and power configurations match what is used for other nodes on the cluster? It is good to either follow the pattern of what is already on the cluster or to follow recommendations from docs.hortonworks.com (see example doc here). Compare and verify that settings and configurations match, including: THP, selinux, ssh keys, user integration, LDAP/AD setup, SSSD integration, drive layouts, etc. Have you verified that JAVA_HOME is set properly with same Java version across
QuestionWhat type of access Cloudera Altus Cluster provides for Cloudera Manager user? AnswerRead-only access. User (guest by the default) can't modify or change settings or configurations in Cloudera Manager.
QuestionCan I choose the Linux distribution that a Cloudera Altus Cluster will be running on? AnswerCurrently, the selected Linux distribution for deployment in Cloudera Altus Clusters is based on CentOS 7.x 64-bit. At this time, no other Linux distrubtions are available for use with Cloudera Altus.
QuestionDoes Cloudera save AWS user credentials (AWS Access Key ID or AWS Access Key)? AnswerNo, Cloudera doesn't save AWS user credentials. If Cloudera Altus environment is set-up using the Cloudera Altus Quickstart, the user is prompted for these credentials, but they are never sent to Cloudera Altus. They are used by the web application residing within the user's brower that sends commands directly to AWS to create necessary resources using a CloudFormation script.In case of the Environment being created via Cloudera Altus Wizard, credentials will never need to appear inside the Cloudera Altus console. User needs to create necessary resources in AWS console and then grant access to them using AWS cross account access mechanism, which does not involve explicit key management.
QuestionDoes Cloudera have access to the customer data in Cloudera Altus Clusters? Answer Spoiler (Highlight to read) No. Cloudera Altus clusters are setup with the expectation that data will reside on the cloud provider's object storage (AWS S3, Azure ADLS). When data resides in this object storage (which exists inside a customer account within AWS or Azure), the Cloudera Altus service does not have access to this data.
QuestionWhat are the available cluster types in Data Engineering Cluster? AnswerCurrently, Cloudera provides clusters that can run the following Data Engineering job types: - Hive on MapReduce- Hive on Spark- Spark on YARN- MapReduce2- PySpark Note: Job submission for a cluster is restricted to the type of job for that various cluster. For example, if you wanted to run just a MR2 job on a Spark-on-YARN cluster, you cannot submit this, even though Spark is configured to use YARN. You would need to standup a separate YARN cluster for it to accept a MR2/YARN job.
QuestionI noticed the Cloudera Altus documentation is not avaialable at the standard location for Cloudera documentation at: https://www.cloudera.com/documentation.html Where is this documentation available? AnswerWhen you login with your Cloudera credentials to: https://console.altus.cloudera.com/ There is a pulldown available in the upper right corner for Support -> Documentation that links to the docummentation at: https://console.altus.cloudera.com/support/documentation.html Documentation will also be available with the standard Cloudera documentation in an upcoming release.
How within few minutes you can setup Rack Awareness through Ambari?Series1: Introduction to Rack Awareness can be viewed here: How does my cluster look?Image below shows the hosts and the rack:You will see that the rack mentioned for each of the hosts in the test cluster is “/default-rack”. Which means Ambari (And HDFS and YARN) thinks of this cluster inside a single rack i.e. default-rack. In other words, it is not rack aware.Now let us examine the configurations that will change after we make the cluster rack-aware.Steps to verify Rack Awareness:1.Login to any node of your cluster. I am choosing node2.ssh root@node22.List the configuration files for rack awareness and view the current mapping of the system:ls –lrt /etc/hadoop/conf/topology* cat /etc/hadoop/conf/toplogy_mappings.dataQs: Why is node 2 not listed here?Because node 2 does not contain a datanode.3.As super user run the fsck and dfsadmin commandssu – hdfs hdfs fsck –racks hdfs dfsadmin –reportFor showing the relevant entr
Issue:HSI's (Tech Preview) component LLAP start fails in kerberized setup because of missing keytabs. When HSI is started, its component LLAP fails with below trace:INFO impl.LlapRegistryService: Using LLAP registry (client) type: Service LlapRegistryService in state LlapRegistryService: STARTEDINFO state.ConnectionStateManager: State change: CONNECTEDERROR impl.LlapZookeeperRegistryImpl: Unable to start curator PathChildrenCache. Exception: {}org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL for /llap-sasl/user-hiveat org.apache.zookeeper.KeeperException.create(KeeperException.java:121) ~[zookeeper-3.4.6.2.5.3.0-37.jar:3.4.6-37--1]at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[zookeeper-3.4.6.2.5.3.0-37.jar:3.4.6-37--1]at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783) ~[zookeeper-3.4.6.2.5.3.0-37.jar:3.4.6-37--1]at org.apache.curator.utils.ZKPaths.mkdirs(ZKPaths.java:232) ~[curator-client-2.7.1.jar:?]at org.a
The Cloudera Altus client (altuscli) requires Python version 3.6 or later. The reason for this requirement is because it relies on some new libraries which ships with Python 3.6 but not in earlier versions. It is not enough to have python3 installed on the machine, it also needs to be the default version, which could be checked by runningpython --version command.Documentation for CLI install
SymptomsWhen creating an AWS Environment through Quickstart, the environment attempts to create, but shows Failed. Applies ToCloudera Altus Environments setup with Quickstart CauseThere can be several causes:Your limit of VPCs have been reached.Your Cloudwatch log group may already exist.Some other limit in AWS has been reached.You may not have proper permissions in AWS. Troubleshooting StepsBeneath the AWS Console -> CloudFormation, select the Stack that just failed to deploy.Expand Events and work from the bottom up to see what the event that failed first.If a limit was exceeded, open an issue with AWS support or request a limit increase beneath EC2 -> limits.If a authorization role is needed for your account, contact your AWS account owner to provide you with that role.Otherwise, correct any failure other failure cause you see (e.g. duplicate CloudWatch log group, etc), delete the stack, and attempt to Quickstart the environment again. Referenceshttps://docs.aws.amazon.c
BackgroundCustomer attached bigger disks to expand the data node storage. If one disk physical fail, can also use this solution.Step by StepDecommission HDFS DataNode component on the hostIt takes hours to finish, depends on your existing data sizeDataNode is decommissionedTurn the host in maintenanceStop all components on the hostChange linux /etc/fstab mount new disks to existing mount points. If possible use uuid rather than disk device. uuid is much stable especially in cloud environment.Manually create the yarn log and local folders in the mount points. Because we don't reprovision the host, yarn won't create create these dirs in your configure, but try to reuse them.# for disk in /hadoop/disk-sd{d..j}/Hadoop> do> mkdir ${disk}/yarn/log && chown yarn:hadoop ${disk}/yarn/log> mkdir ${disk}/yarn/local && chown yarn:hadoop ${disk}/yarn/local> doneAfter change Linux disk mount configuration, start all components on the hostRecommission DateNodeTurn off main
Sometimes, in the face of initialize configuration and setup, it is easier to completely re-initialize an Accumulo installation than try to repair it. These steps are different than what might be found in the Apache ecosystem as the following steps are related to how Apache Ambari is used to install and configure Accumulo.Warning: the following steps (may) irreversibly remove all Accumulo related data. This includes table data, namespaces, table configuration, and Accumulo users. Do not perform these steps unless you are positive that you do not want to preserve any of the information.First, Accumulo must be stopped. This can be done via Ambari and verified using tools like `ps` on the nodes.Second, the Accumulo HDFS directory should be removed. This can be done by the HDFS superuser ("hdfs" by default) or the Accumulo user ("accumulo" by default).# sudo -u hdfs hdfs dfs -rm -R /apps/accumulo/dataNext, Accumulo needs to re-initialized using the command line tools. This command must be
Steps to Create Table in Hive on S3A with RangerCreate a bucket with a unique name, I've used "myhivebucket" and do not change any details in the permissionsComplete the "Create bucket" wizard by clicking on "create bucket" buttonMake the following entries in custom hdfs-site.xml fs.s3a.access.key = <access key>fs.s3a.secret.key = <access secret>fs.s3a.impl = org.apache.hadoop.fs.s3a.S3AFileSystemTo retrieve the value for access key and secret, follow these steps: Login to https://aws.amazon.com/consoleClick on "Sign in to the console" tabLogin with appropriate credentialsOnce logged in, you should see your login name on the top right corner of the AWS pageClick on the drop-down arrow beside your login name and select "My Security Credentials"This should take you to a page titled "Your Security Credentials"From this page, collapse the option that says "Access Keys(Access Key ID and Secret Access Key)"You have to click on "create a new access key" because of Amazon limitati
First ... if you need background Azure Event Hubs go here: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-overviewSecond, its handy to know why you need a SAS token and what you can do once you have one. See: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-authentication-and-security-model-overviewWe will use an example configuration for and Event Hub service. The corresponding data for your service can be found on the details page of the share access policy you want to use. More information on this topic can be found here https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-shared-access-signature-authenticationFrom the shared access policy "hub-nifi"'s detail page we can get all the information we need to create our token from the connection string-primary key fieldEndpoint=sb://nifi-eventhub.servicebus.windows.net/;SharedAccessKeyName=hub-user;SharedAccessKey=2hmLYbJk2q5uZ2Yfyl0XSezXbxD+afO9ysh0Vsv4Xq8=;EntityPath=hub1A SAS token is s
When trying to add a policy that has many resource paths to Ranger using the API it can fail with the errorException [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExceptionInternal Exception: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'sort_order' at row 1Error Code: 1264Call: INSERT INTO x_policy_resource_map (ADDED_BY_ID, CREATE_TIME, sort_order, resource_id, UPDATE_TIME, UPD_BY_ID, value) VALUES (?, ?, ?, ?, ?, ?, ?) bind => [7 parameters bound]Query: InsertObjectQuery(XXPolicyResourceMap [XXDBBase={createTime={Thu Apr 13 11:42:38 UTC 2017} updateTime={Thu Apr 13 11:42:39 UTC 2017} addedByUserId={1} updatedByUserId={1} } id=null, resourceId=43, value=/tmp/129, order=128])This is caused by a limit in Ranger policies that can only contain a maximum of 128 resource paths in a single policy. The work-around would be to split the policy in to two or more policies each cont
How to clean up & recreate collections on Ambari Infra Sometimes you need to clean up an installation that went with issues and there are missing collections on Ambari Infra solr. In order to do this, go thry the next list of steps to clean up solr collections and recreate them from scratch. IMPORTANT: This steps will delete all collection data, so unless you are sure data can be removed dont perform these steps. 1) Switch adudit solr to OFF from Ranger -> Ranger Audit configuration. Restarted all affected.2) Stop Altas service3) From the ambari infra host remove all the collections using rest api$ kinit -kt /etc/security/keytabs/ambari-infra-solr.service.keytab infra-solr/....$ export SOLR_HOST=<solr host fqdn>## Ranger collection:$ curl -i -v --negotiate -u : "http://$SOLR_HOST:8886/solr/admin/collections?action=DELETE&name=ranger_audits"## Atlas collections:$ curl -i -v --negotiate -u : "http://$SOLR_HOST:8886/solr/admin/collections?action=DELETE&name=vertex_i
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.