Find and share helpful community-sourced technical articles
Recently active
SYMPTOM :=> This problem occurs in case of a partitioned table without any null partitions and contains approximately more than 600 columns in the table=> Following stacktrace is observed in hive metastore logsNested Throwables StackTrace:org.datanucleus.store.rdbms.exceptions.MappedDatastoreException: INSERT INTO "PARTITION_PARAMS" ("PARAM_VALUE","PART_ID","PARAM_KEY") VALUES (?,?,?) at org.datanucleus.store.rdbms.scostore.JoinMapStore.internalPut(JoinMapStore.java:1056) at org.datanucleus.store.rdbms.scostore.JoinMapStore.put(JoinMapStore.java:307) at org.datanucleus.store.types.wrappers.backed.Map.put(Map.java:653) at org.apache.hadoop.hive.common.StatsSetupConst.setColumnStatsState(StatsSetupConst.java:285) at org.apache.hadoop.hive.metastore.ObjectStore.updatePartitionColumnStatistics(ObjectStore.java:6237) at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
SYMPTOM:Incorrect status shown for the DAGs in Tez UI ROOT CAUSE This is a known issue (https://issues.apache.org/jira/browse/TEZ-3656). It will only happen for the killed applications or if there was a failure to write into Application Timeline Server. It should not cause any issues, except for the wrong status for the DAG in the TezUI. RESOLUTION:This is fixed in HDP 2.6.1 release
PROBLEM DEFINITION: CREATE TABLE DT(Dérivation string, Pièce_Générique string);Throws ParserException ErrorROOT CAUSE/ WORKAROUND: Hive database name, table name and/or column names cannot contain Unicode string. However, Hive supports UTF-8 and Unicode string for only the table data/comments. LINKS:https://cwiki.apache.org/confluence/display/Hive/User+FAQ
The original configurations and the original CLI options are respectively discussed in Section 1 & 2. The new configurations and the new CLI options are respectively discussed in Section 3 & 4.1. Original ConfigurationsConcurrent Movesdfs.datanode.balance.max.concurrent.moves, default is 5This configuration is to limit the maximum number of concurrent block moves that a Datanode is allowed for balancing the cluster. If this configuration is set in a Datanode, the Datanode will throw an exception if the limit is exceeded. If it is set in the Balancer, the Balancer will schedule concurrent block movements within the limit. Note that the Datanode setting and the Balancer setting could be different. Since both settings impose a restriction, the effective setting is the minimum of them.Before HDFS-9214, changing this configuration in a Datanode requires restarting the Datanode. Therefore, it is recommended to set it to the highest possible value in Datanodes and adjust the runt
Steps to configure 2way SSL between Ambari-server and Ambari-agent by using custom certs. Here I have used CA Signed certs at server side and Agent certs are generated dynamically. if you are planning to use CA Signed cert at Agents side then for every Agent install you may have to copy the certs and do manual work.1. Make sure to have fresh keys folder. (if you do not have one, you can copy the folder from one of the fresh install machine or do following). - Delete all the crt and csr files that starts with hostname at /var/lib/ambari-server/keys. - Empty /var/lib/ambari-server/keys/db/index.txt file - Delete any certs under /var/lib/ambari-server/keys/db/newcerts/ 2. - Copy your own Signed Certificate, key files /var/lib/ambari-server/keys/ Ex: certificate name is - ca-cust.crt, ca-cust.key 3. Create PKCS keystore file from your cert and key files. Ex:openssl pkcs12 -export -inkey /tmpr/keys/ca.key -in ca-cust.crt -out /tmp/keys/keystore.p12 -password pass:bigdat
We had kerberised the HDP cluster and storm UI was not opening and we need to troubleshoot StormUI issue.To put DEBUG on for STormUI follow this steps:--------------------------------------------------------------In Ambari - Storm - Config - STORM UI Server section add below :ui.childopts(original)= -Xmx768m_JAAS_PLACEHOLDERui.childopts = -Xmx768m_JAAS_PLACEHOLDER -Dsun.security.krb5.debug=truewe wanted to troubleshoot zookeeper as well To put DEBUG on for Zookeeper follow this steps:------------------------------------------------------------------In Amabri - Zookeeeper - Advanced Zookeeper-log4jadd below:#log4j.rootLogger=INFO,CONSOLE ***Comment this linelog4j.rootLogger=DEBUG,CONSOLE,ROLLINGFILE ***uncomment this lineThe log file will be generated by default to /home/zookeeper/zookeeper.log if below property is set as default.log4j.appender.ROLLINGFILE.File=zookeeper.log
Overview This article reviews the steps necessary to update Hive entities within Atlas the Description and Comment fields. The 0.70 Atlas release will display and allow text searches on the ‘‘description’ field, but the Atlas UI does not at this time support the ability to manually enter those properties into a given data Asset. Examined in this article includes: Searching for a Hive_Table entity Update a single property for the Hive_Table entity definition (“description”)The Problem: In release 0.70, Atlas has the ability to monitor additions as well as changes to Hive table and Hive columns. When Atlas identifies a new entry or change the appropriate Metadata property is updated for that entity. One very cool aspect to Atlas is the ability to conduct either DSL or free text searches on any properties set for the entity. Anyone trying to identify datasets to support a specific analytic activity will definitely appreciate the ability search through all of the entities and qui
STEPS TO REPRODUCE:1. Create a Phoenix connection 2. CREATE SCHEMA test 3. DROP SCHEMA test4. Now create the test schema again. This will throw below exceptions :0: jdbc:phoenix:> create schema "test"; Error: ERROR 721 (42M04): Schema with given name already exists schemaName=test (state=42M04,code=721) org.apache.phoenix.schema.SchemaAlreadyExistsException: ERROR 721 (42M04): Schema with given name already exists schemaName=test5. Now attempt to drop the test schema again:0: jdbc:phoenix:> drop schema "test";Error: ERROR 722(43M05):Schema does not exists schemaName=test (state=43M05,code=722) org.apache.phoenix.schema.SchemaNotFoundException: ERROR 722(43M05):Schema does not exists schemaName=testIf you look in Hbase and list_namespace, you will see the test schema still exists.ROOT CAUSE : This is a known issue discussed in Apache JIRA PHOENIX-3694SOLUTION : Issue is fixed in Phoenix 4.10. For a backport hotfix , please log a case with HWX.
The HDFS NameNode ensures that each block is sufficiently replicated. When it detects the loss of a DataNode, it instructs remaining nodes to maintain adequate replication by creating additional block replicas. For each lost replica, the NameNode picks a (source, destination) pair where the source is an available DataNode with another replica of the block and the destination is the target for the new replica. The re-replication work can be massively parallelized in large clusters since the replica distribution is randomized. In this article, we estimate a lower bound for the recovery time.Simplifying Assumptions The maximum IO bandwidth of each disk is 100MB/s (reads + writes). This is true for the vast majority of clusters that use spinning disks.The aggregate IO capacity of the cluster is limited by disk and not the network. This is not always true but helps us establish lower bounds without discussing network topologies. Block replicas are uniformly distributed across the clus
QuestionIs the Cloudera Altus CLI supported for Windows systems? AnswerStarting with the Cloudera Altus CLI Version 1.1.3, installation is available through pip, as long as the following minimum requirements are met: Minimum version of Python 3.6+ 1) Download and Install Python for Windows according to the website's instructions: https://www.python.org/downloads/windows/ 2) Open a Command Prompt (Windows Key + R), then type cmd and hit enter. 3) In the Command prompt window, run the command to update the Windows environment to add the newly installed Python folder to the system path: setx "%PATH%";C:\<Python_Install_destination>\Scripts; For example, if Python 2.7 was installed in it's default location, the following command would be run: setx "%PATH%";C:\Python36\Scripts; 4) In the same Window, run the pip installer to install the Cloudera Altus
Device Behavior Analytics allows administrators to detect straggler nodes/disks which reduce the cluster performance. Finding and fixing these nodes can improve the overall cluster throughput. This feature will be available in HDP-2.6.1 and later. There are two parts to Device Behavior Analytics – Slow Datanode Detection and Slow Disk Detection.SLOW DATANODE (PEER) DETECTION Datanode will collect latency statistics about their peers during the normal operation of the datanode write pipeline. These latency stats are used to detect outliers among the peers. Slow peer detection is not performed unless the datanode has statistics of at least 10 peers. Namenode maintains the list of slow peers and administrators can read it via JMX. Datanodes also expose the average write latency of their peers through Datanode JMX.SLOW DISK DETECTION Each datanode will collect I/O statistics from all its disks. We can configure the percentage of file I/O events to be sampled to limit the performance i
Current on version HDP-2.6.x - Ambari-2.5.x if the zookeeper principal name is changed or customized manual changes are required for HDFS, Yarn and Ambari-Infra.In Ambari - config - for yarn and HDFS: yarn-env.sh YARN_OPTS="-Dzookeeper.sasl.client=true -Dzookeeper.sasl.client.username=sand-box-zookeeper -Djava.security.auth.login.config=/etc/hadoop/2.6.0.3-8/0/yarn_jaas.conf -Dzookeeper.sasl.clientconfig=Client $YARN_OPTS" hadoop/conf/hadoop-env.sh export HADOOP_ZKFC_OPTS="-Dzookeeper.sasl.client=true -Dzookeeper.sasl.client.username=sandbox-zookeeper -Djava.security.auth.login.config=/usr/hdp/current/hadoop-client/conf/secure/hdfs_jaas.conf -Dzookeeper.sasl.clientconfig=Client $HADOOP_ZKFC_OPTS" For Ambari-Infra/Solr edit /usr/lib/ambari-infra-solr-client/solrCloudCli.sh PATH=$JAVA_HOME/bin:$PATH $JVM -classpath "$sdir:$sdir/libs/*" -Dzookeeper.sasl.client.username=sandbox-zookeeper org.apache.ambari.logsearch.solr.AmbariSolrCloudCLI ${1+"$@"} edit /usr/lib/ambari-infra-solr/
QuestionWhere does Workload Analytics ingest user workloads into and analyze it? AnswerWorkload Analytics runs as part of Cloudera Altus functionality on an environment operated by Cloudera. Telemetry Publisher, part of Cloudera Manager installation, sends user's workload to the environment as soon as a job ends and analyze it. Thereon the result shows up in the Cloudera Altus UI. https://www.cloudera.com/documentation/altus/topics/wa_overview.html
QuestionIs it possible to tune the thresholds for Health Check which Workload Analytics does based on user's requirements? AnswerNo, it's not possible to tune the thresholds. Health Check uses predefined thresholds which are described in the document: https://www.cloudera.com/documentation/altus/topics/wa_analyze_jobs.html
SYMPTOMS: Cannot access Tez View. On accessing Tez View, we get the below error: error code: 500, message: Internal Server Error{"message":"Failed to fetch results by the proxy from url: http://<hostname>:8188/ws/v1/timeline/TEZ_DAG_ID?limit=11&_=1470838899327&...Error.","status":500,"trace":"Connection refused"} ROOT CAUSE: The issue is due to "YARN ResourceManager URL" pointing out to the standby RM node when you have a RM HA configured. This is usually a configuration change under "Cluster Configuration" while setting up a TEZ view where the user updates opts for the "Custom" option and includes only a single Resource Manager address in "YARN ResourceManager URL" configuration. SOLUTION: In case of RM HA configuration , the "YARN ResourceManager URL" should point out to a both the Resource Manager addresses which should be in a semi-colon separated format (e.g. sumeshnode1.openstacklocal:8088;sumeshnode3.openstacklocal:8088)
This article will give a quick demonstration to add Leaflet maps to an Angular paragraph in Zeppelin. Background: Leaflet Maps Leaflet is an open-source JavaScript library for interactive maps. Leaflet is designed with simplicity, performance and usability in mind.Step 1: Adding a map to a Zeppelin notebook.Code Source: %angular <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" /><div id="map" style="height: 800px; width: 100%"> </div><script type="text/javascript">function initMap() { var map = L.map('map').setView([33.415, -111.831], 6); L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors', maxZoom: 15, minZoom: 3 }).addTo(map); var geoMarkers = L.layerGroup().addTo(map); }if (window.L) { initMap();} else { console.log('Loading Leaflet library'); var sc = document
QuestionWhy do I get below message "Request Time is Invalid" after logging into Cloudera Altus? AnswerThe clock on the machine from where you are accessing the Cloudera Altus Web UI is not accurate. Please make sure the clock is set up correctly.
Release - HDP2.5 Background: Before this feature was released, Ranger allowed User to create only access policy for hive, that can provide security till column level, but folks might be interested in enabling cell level security then this is the solution they should opt. Introduction: This is a newly introduced feature,allows to create new type of ranger-hive policies that help administrator to restrict User from accessing some specific rows in table based on the filter condition in policy or mask the data that is sensitive , this masking can be full or partial. Lets go in details for both policy type: Row Filter policy: Row filter policy allows ranger to specify filter expression in the hive policy, so that users sees only some specifc rows in the table that belong to him. eg: if user belong to US, and query the employee table and we want to restrict him to see only those employee who belong to US, then filter expression will be location = 'US'. there is a new tab we can see HDP2.5
Change Log directory for Ranger Admin logsOn Ranger Admin nodes: ADMIN LOGS (Change the symbolic link for in ews directory):mkdir /opt/ranger/adminchmod -R 775/opt/ranger/adminchown -R ranger:ranger /opt/ranger/admincd /usr/hdp/current/ranger-admin/ewsunlink logln -s /opt/ranger/admin logsChange log directory for USERSYNC LOGSOn Ranger Usersync node:mkdir /opt/ranger/usersyncchmod -R 775/opt/ranger/usersyncchown -R ranger:ranger /opt/ranger/usersynccd /usr/hdp/current/ranger-usersync/unlink logsln -s /opt/ranger/usersync logscd /usr/hdp/current/ranger-usersync/cp ranger-usersync-services.sh{,.backup01122015}vim ranger-usersync-services.sh #logdir=/var/log/ranger/usersync (If it is present) logdir=/opt/ranger/usersyncChange log directory for TAGSYNC LOGS:On Ranger Tagsync nodes:mkdir /opt/ranger/tagsyncchmod -R 775/opt/ranger/tagsyncchown -R ranger:ranger /opt/ranger/tagsynccd /usr/hdp/current/ranger-tagsync/unlink logsln -s /opt/ranger/tagsync logscp ranger-tagsync-services.sh{,.backup
IntroductionAmbari 2.2.2 provides a better understanding of cluster health and performance metrics through advanced visualizations and pre-built dashboards, isolating critical metrics for core cluster services such as Kafka reducing time to troubleshoot problems, and improving the level of service for cluster tenants.Ambari Metrics System (AMS) has also a new API to discover metrics. Only HDFS, YARN and HBASE default dashboards are included along with System metrics. Ambari 2.2.2 comes with built-in Grafana integration. Kafka default Grafana dashboard is targeted for Ambari 2.4. Until then, you can build a custom dashboard to see over 30 Kafka BrokerTopicMetrics using Grafana.Tutorial1. Install Ambari 2.2.2 or Upgrade to Ambari 2.2.2. On upgrade, to enable Grafana, follow instructions from Upgrade to Ambari 2.2.2.2. Automated Install of HDP 2.4 with Ambari 2.2.2, including Kafka 0.9.0.2.4. Grafana is added automatically on a new install.3. Explore Ambari Kafka Metrics that can be acces
Sometimes data in the system expires because it is no longer correct or the data was rented for a specific time period. One way to implement data expiration requirements is to delete the data after it is no longer valid. However you may also have another policy that requires retention of the data to track how decisions were made or for compliance with regulations. In addition deleting the data is more error prone to implement because an administrator must track a task in the future to delete the data after it expires. If the task is missed and the data is not deleted, expired data or illegal data could lead to incorrect decisions or lapses in compliance. This article shows an example of specifying the expiration date for a Hive table in Atlas and creating a tag based policy that prevents access of the table after the expiration date.Enabling Atlas in the Sandbox 1. Create a Hortonworks HDP 2.5 Sandbox You can use either a Virtual Machine or a host in the cloud. 2. In the brows
Use recommended mount options for all HDFS data disksThere are specific filesystem mount options that have proven to be more efficient for Hadoop clusters. Using these mount options will provide performance benefits. Since mount options are applied when mounting the filesystem, on system boot or remounting for example, changes to /etc/fstab alone are not enough for these settings to take effect. The recommended approach is to make the mount option changes and either manually remount the individual file systems or reboot the host for the settings to take effect.Use the following mount options for the respective file systems:ext4 —> "inode_readahead_blks=128","data=writeback","noatime","nodev"xfs —> "noatime"Configure HDFS block size for optimal performanceHaving optimal HDFS block size boosts NameNode performance as well as job execution performance.Make sure that the blocksize ('dfs.blocksize' in 'hdfs-site.xml') is within the recommended range of 134217728 to 1073741824 (excl
With HDCloud for AWS 1.16 and Cloudbreak 1.16.1, you can optionally use Hortonworks flex subscriptions to cover the controller and all clusters created. To do that you must: Obtain a flex subscription. For general information about the Hortonworks Flex Support Subscription, visit the Hortonworks Support page at https://hortonworks.com/services/support/enterprise/.Configure SmartSenseID and Telemetry when launching the cloud controller (HDCloud for AWS) or Cloudbreak.Register your Flex Subscription in the cloud controller or Cloudbreak web UI.When creating a cluster, select a flex subscription to use for the cluster.Configure and Manage Flex in HDCloud1. To configure flex in HDCloud, you must provide your SmartSense ID and Telemetry Opt In when launching the cloud controller. These options are available in the SmartSense Configuration section of the CloudFormation template:2. Once you log in to the cloud controller web UI, you can manage your flex subscriptions from the Settings > Ma
See Part 1: https://community.hortonworks.com/content/kbentry/107379/minifi-for-image-capture-and-ingestion-from-raspbe.html See Part 2: https://community.hortonworks.com/articles/108947/minifi-for-ble-bluetooth-low-energy-beacon-data-in.html We build a flow in Apache NiFi and then export the template. Using the MiniFi tool we convert this into a config.yaml file and send it to our device via scp. You can see this in Part 1. This simple flow calls a shell script that will run a Python script to get our sensor data. This flow will then send the data to our NiFi server via S2S over HTTP. What I have added in this part is use of the new Record and Schema paradigms and also the ability to SQL queries against incoming flow files using QueryRecord. This requires building an AVRO schema for our data, which is dead easy JSON definition. We set out port to connect the minifi agent to our server. Data quickly starts coming in. Receive the JSON Messages in NiFi via S2S
See Part 1: https://community.hortonworks.com/content/kbentry/107379/minifi-for-image-capture-and-ingestion-from-raspbe.htmlIn this article, we are ingesting beacon data using an ASUS Tinkerboard which is very similar to a Raspberry PI in form, form factor and features. It is newer and has less peripherals, but has 2 gig of RAM, ARM Mali GPU T760 MP4, Quad-core ARM Cortex-A17 1.8Ghz processor with a dual-channel DDR3 memory and BLE built-in (Bluetooth 4.0 with EDR).For beacons, I am using the basic Estimate three beacon collection. They have a really nice solid beacon in a silicon case, that looks nice and works well. They have a mobile app to manage, monitor and simulate as well as a cloud app.From our Apache NiFi server we have an Input Port that is receiving the messages from the Java MiniFi agent running on the ASUS Tinkerboard.As with most of the data, I want to ingest the data every minute.The ASUS Tinkerboard device has the read light lit up. The Estimate beacons are the
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.