Find answers, ask questions, and share your expertise
Recently active
After setting custom kerberos princ for hive: Unable to read HiveServer2 configs from ZooKeeper (state=,code=0). But if i use default kerb principal i am able to logon to hive.followed this dochttps://docs.cloudera.com/cdp-private-cloud-base/7.1.9/security-kerberos-authentication/topics/hive-custom-kerberos-principal.html SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]Connecting to jdbc:hive2://im19-vm4.eng.cohesity.com:2181,im19-vm5.eng.cohesity.com:2181,im19-vm6.eng.cohesity.com:2181/default;password=root;principal=khive/_HOST@im19-vm4.realm;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=9xSdfOCgyzHPGv24yUYU9QOob4sKxiey5GsTnZgK7oB;trustStoreType=jks;user=root;zooKeeperNamespace=hiveserver2Error: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read HiveServer2 conf
From last few days I am received alert from SERVICE_MONITOR_HEAP_SIZE in our CDP cluster (version 7.1.7). we are getting frequent alerts on the SERVICE_MONITOR_HEAP_SIZE.How can I fix this issue? Monitored Entities are :logs :
curl -H "Content-Type: application/JSON ; Authorization: Bearer {token here}" -d "{"revision":{"clientId":"ac153723-44ff-17fd-e42e-f975cb01817b"},"processors":{"id":"ac15a47e-44ff-17fd-ffff-fffffc691b51","running":"true"}}" -X PUT "https://aaa.com:443/nifi-api/processors/ac15a47e-44ff-17fd-ffff-fffffc691b51/run-status" we are trying to run NIFI processor using NIFI API as above, but its giving UNAUTHORIZED error always. Can any one help in getting this fixed. Are we using correct code? We are able to get the token from NIFI.
Hello,I have Two Questions1. In case of error , GenerateTableFetch is not getting routed to Failure. 2. GenerateTableFetch keep on trying . I need it should do this only once in case of error.Thanks,Riyaz
Hello All, Can anyone provide me the most challenging real time issues solved on Spark, YARN and Hive ? @RangaReddy
I am trying to create a flow to convert a JSON object to Avro and then consume the produced data from Avro to JSON.This is the sample data I am using When I check the data that is finally consumed and converted back to JSON , It is coming as array instead of object :[ {"Vehicle" : "BigVehicle","Fromuser" : "User1","Timestamp" : "2024-03-19T13:00:00+0530"} ]convertRecord configuration for JSON toAvro conversion:Convert Record from Avro to JSON:
We have changed our postgresql DB instance to a new port and migrated all the locally available data from older DB instance to a newer oneUpdated the port every place needed in cloudera manager and db.propertiesHowever while starting the hive metastore server is failing with below errorP.S : We are using postgres as external database ERROR org.apache.hadoop.hive.metastore.RetryingHMSHandler: [TThreadPoolServer WorkerProcess-20]: Retrying HMSHandler after 2000 ms (attempt 3 of 10) with error: javax.jdo.JDOUserException: Exception thrown while loading remaining rows of queryat org.datanucleus.api.jdo.JDOAdapter.getUserExceptionForException(JDOAdapter.java:659)at org.datanucleus.store.rdbms.query.ForwardQueryResult.closingConnection(ForwardQueryResult.java:310)at org.datanucleus.store.query.AbstractQueryResult.disconnect(AbstractQueryResult.java:105)at org.datanucleus.store.rdbms.query.AbstractRDBMSQueryResult.disconnect(AbstractRDBMSQueryResult.java:248)at org.datanucleus.store.rdbm
I created a table and in beeline (hive) and it worked quickly. # Movies tableCREATE EXTERNAL TABLE movies ( movieId INT, title STRING, genres STRING)ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'WITH SERDEPROPERTIES ( "separatorChar" = ",", "quoteChar" = "\"", "escapeChar" = "\\")STORED AS TEXTFILELOCATION '/user/hive/warehouse/movielens/movies'TBLPROPERTIES ("skip.header.line.count"="1");# Ratings tableCREATE EXTERNAL TABLE ratings ( userId INT, movieId INT, rating DOUBLE, rating_timestamp BIGINT)ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'WITH SERDEPROPERTIES ( "separatorChar" = ",", "quoteChar" = "\"", "escapeChar" = "\\")STORED AS TEXTFILELOCATION '/user/hive/warehouse/movielens/ratings'TBLPROPERTIES ("skip.header.line.count"="1"); I am attempting: CREATE TABLE avg_movie_ratings ASSELECT movieId, AVG(rating) AS avg_ratingFROM ratingsGROUP BY movieId; which starts a
Hello Experts,I see this red color high lighted number "2(1)"on Apache nifi processor.Is this something related to background process (processor thread) failing or something?I face the issue of this custom processor getting stuck once in a while, trying to understand the issue.This processor just invokes an http post endpoint to upload a file.Any help/suggestion is appreciated. Thanks,Mahendra
Hi All,I hope you are doing well. Please help me with below request.Currenty our client is using MS Dynamics and they gave basic details required to fetch token.In Postman - 1. I'm choosing OAuth 2.0 in Authorization. 2. Giving the basic details(shared below) it asked for. 3. Then clicking on "Get New Access Token" 4. New window pops up to enter my Username and Password. 5. Post validating Creds, it gives the Token in another window.Problem : All the steps which I'm doing in postman, I want to implement the same in Apache Nifi(to fetch the Token). Basically I need an API along with a request payload to fetch the token.(I'm worried if it is possible to do so in one call, as we need to gi
Hi Everyone, While kerberizing my cluster using MIT-KDC and Ambari Kerberos Wizard. I am facing the following window popup at the time of Testing client after client installation saying :I'm using ambari 2.7.8HDFS 3.3.6UBUNTU 22config of krb5.conf[logging]default = FILE:/var/log/krb5libs.logkdc = FILE:/var/log/krb5kdc.logadmin_server = FILE:/var/log/kadmind.log[libdefaults]default_realm = EXAMPLE.COMdns_lookup_realm = falsedns_lookup_kdc = falseticket_lifetime = 24hrenew_lifetime = 7dforwardable = true[realms]EXAMPLE.COM = {kdc = admin.comadmin_server = admin.com}[domain_realm].example.com = EXAMPLE.COMexample.com = EXAMPLE.COMconfig of /etc/hostnamelist principal isroot@admin:/# kadmin.local -q "listprincs"Authenticating as principal admin/admin@EXAMPLE.COM with password.K/M@EXAMPLE.COMadmin/admin@EXAMPLE.COMkadmin/admin@EXAMPLE.COMkadmin/changepw@EXAMPLE.COMkrbtgt/EXAMPLE.COM@EXAMPLE.COM ambari-server.log:KERBEROS_SERVICE_CHECK, inputs :{HAS_RESOURCE_FILTERS=true}, resource
Is there any way which we can pass dynamic CRON expression as a run schedule input to invoke HTTP processor (using NiFi 1.19.1).Because I have CRON expression which is stored in DB. Where I am fetching it through ( executesql -> convertAvroToJson -> SplitJson -> Evaluate JsonPath (schedule: $.schedule)).If I add ${schedule} in invoke HTTP processor getting Unexpected character error.Looking for expert's help @MattWho @SAMSAL @cotopaul
Is there a way to import backups in nifiregistry which will store by default .snapshot format?@MattWho @TimothySpann @Nifi
Hi experts,I was wondering what is the best way to troubleshoot an application or job that is taking longer than usual. Maybe a 5minute job that is taking 1 hour or longer to complete etc.What are some things I should start looking at first? Or can someone bring me through the process? Thanks,
Hi, I'm facing some data loss while doing the insert overwrite through multiple hive views and in case of some column qualifiers data is getting rolled back . Can we do data upserts through multiple hive views on single hbase table. Can anyone help me to understand this issue.
Hello there!We create a hive external table that refers to a HBase table:CREATE EXTERNAL TABLE default.c_COUNTRIES_AP( key BINARY, CF1_COUNTRY_ID_1 BINARY, CF1_COUNTRY_NAME_2 BINARY, CF1_COUNTRY_REGION_3 BINARY, CF1_COUNTRY_SUBREGION_4 BINARY )STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'WITH SERDEPROPERTIES ("hbase.c
Hi ,I'm having a hard time writing my custom processor using python extension. it seems this feature is not mature as I thought or maybe I'm miss understanding something. To summarize I have encountered two issues but they are both related to the same error, as follows:1- I was experimenting with developing a custom processor using the RecordTransform class to partition a json array, my processor is simple, it takes json array of records where each record is a json object that has a "name" and "age" fields. The processor then try to return RecordTransformResult from the transform method as follows: def transform(self, context, record, schema, attributemap): return RecordTransformResult(schema=None,record=record,relationship="success",partition={'name':record['name']}) I'm trying to use partition to split the record and passing the partition key just as described in the developer guide:https://nifi.apache.org/documentation/nifi-2.0.0-M1/html/python-developer-guide.htm
Hi,Im trying to write my own python extension that takes an excel bytes and produce an output flowfile for each sheet represented in html. Im using pandas dataframe for the conversion. I have been looking to the python extension developer guide but I cant find anything that will point me in the right direction:https://nifi.apache.org/documentation/nifi-2.0.0-M2/html/python-developer-guide.html#record-transformThe TransformRecord talks about partitioning flowfile input but it seems like it has to be nifi readable format (json, csv , avro...etc).In executescript processor you could have easily generated multiple flow files by passing array of flowfiles to the session.transfer method:https://community.cloudera.com/t5/Support-Questions/Split-one-Nifi-flow-file-into-Multiple-flow-file-based-on/td-p/203387However neither RecordTransformResult nor FlowFileTransformResult can do that.Can someone provide me with the code if applicable.Thanks
Hi Cloudera,I am developing a custom processor which uses nifi inbuilt processors as dependencies in pom.xml. This is creating a duplicate processor of existing nifi standard processors with my custom nar version in the NiFi(Please refer to the attachment picture). Is there a way to include these dependencies without bundling them with my custom processor nar. I have tried added the dependencies as `provided` but that is causing the build to fail. I want these dependencies to be referenced from the lib folder where I have placed my nar file.Here are my pom.xml files1. Main root pom.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.nifi</groupId>
This is the query which is running on metastore_dbSELECT`A0` . `PART_NAME`FROM`PARTITIONS` `A0`LEFT OUTER JOIN`TBLS` `B0`ON`A0` . `TBL_ID` = `B0` . `TBL_ID`LEFT OUTER JOIN`DBS` `C0`ON`B0` . `DB_ID` = `C0` . `DB_ID`WHERE`C0` . `NAME` = ?AND `C0` . `CTLG_NAME` = ?AND `B0` . `TBL_NAME` = ?AND `A0` . `PART_NAME` LIKE ? ESCAPE ?how we can optimize it ? Is it system generated?or from where it is coming at metastore_db database that is inside mysql.SELECT"AO""PART NAME' FROM 'PARTITIONSAO' LEFT OUTER JOIN 'TBLS"RO' ON 'AO'• 'TBL ID'** Note ** I am using Trino hive architecture. Thanks in advance for your help....
Hi everyone, I'm trying to use rest api in a cloudera cluster with ssl and kerberos. I am testing the use of the same by authenticating with a bearer token to gain access to the resource. Below is what is used and working: curl 'https://nifi-node:8443/nifi-api/access/token' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'username=myuserad&password=mypasswordad' --compressed --cacert /var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_cacerts.pemcurl -H 'Authorization: Bearer token generated 'Content-Type: application/json' -XPUT -d '{"id":"****","state":"RUNNING"}' https://nifi-node/nifi-api/flow/process-groups/****--cacert /var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_cacerts.pemTo avoid entering the password in clear text as in curl N.1 I am testing the token generation via Kerberos: curl -X POST --negotiate -u : https://nifi-node:8443/nifi-api/access/kerberos --cacert /var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_cacerts .pem Using t
Hello Community,I have an old CDH6 and realized the following suspicious traces in cloudera.flood.log in /var/log/cloudera-scm-serverdht_pkt_alert ==> [82.43.248.101:6881]dht_pkt_alert <== [82.43.248.101:6881]and the same for another almost 100 different IPs outside the network by using the p2p libraries (and not sure that they are Cloudera Repository Ps)Did you see anything similar? this activity is quite suspicious.Thanks for your help
Hi Team, One of our client is using Grafana as a visualization tool in HDP and we need to migrate to CDP. Just want to understand, Does Grafana will be supported as a visualization tool in CDP? Thanks and RegardsSunil Kumar KS
I'm trying to run miniFi in ubuntu. When I try to start miniFi, I got following error in bootstrap and app log. App.log2024-05-23 08:49:45,416 WARN [main] org.apache.nifi.util.FlowParser Schema validation error parsing Flow Configuration at line 22, col 29: cvc-complex-type.2.4.a: Invalid content was found starting with element 'maxConcurrentTasks'. One of '{bundle}' is expected.2024-05-23 08:49:45,439 WARN [main] org.apache.nifi.util.FlowParser Schema validation error parsing Flow Configuration at line 99, col 28: cvc-complex-type.2.4.a: Invalid content was found starting with element 'networkInterface'. One of '{inputPort, outputPort}' is expected.2024-05-23 08:49:45,833 INFO [main] o.a.nifi.headless.HeadlessNiFiServer Loading Flow...2024-05-23 08:49:45,864 WARN [main] o.a.nifi.headless.HeadlessNiFiServer Failed to start headless server... shutting down.java.lang.Exception: Unable to load flow due to: java.lang.IllegalArgumentException: NiFi Sensitive Properties Key
Hi,Using pythong extension Im trying to write my custom processor , I noticed when I return failure rel as follows: return FlowFileTransformResult("failure", contents=None,attributes={"Feeling.Good.About.PY.Ext":"No"}) I cant find any attribute "Feeling.Good.About.PY.Ext" in the failure rel flowfile with value "No". I can guarantee that its not because the attribute name or the value 🙂 . Not sure if this is done by design or what.Any thoughts on this?I have also posted another question related to splitting byte input into multiple flowfiles here but no answer:https://community.cloudera.com/t5/Support-Questions/python-extension-generate-multiple-flowfiles-from-bytes/m-p/383095 @MattWho, @steven-matison , @cotopaul , @joseomjr Thanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.