Find answers, ask questions, and share your expertise
Recently active
Hello,I have one big table in one database that I have to sink on destination.Firs I have flow with incremental insert and it works fine. Than in other flow I have incremental delete by ID column.I am trying to delete 3179958 records from table. I have one table on source and I have to do increment delete on destination. This is my flow. I am sending every processor separate:generatetablefetch:execute sql: putdatabaserecord - delete When I have much less records it all works fine. But now flow can't finished... Is there any other solution. Thanks in advance
I am facing an error during hiverserver2 start as "caught exception: ZooKeeper node /hiveserver2 is not ready yetand when I debug more I see that there is no hiveserver2 instance in zookeeper. Welcome to ZooKeeper!2022-02-03 01:58:35,986 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1013] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)JLine support is enabled2022-02-03 01:58:36,072 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@856] - Socket connection established, initiating session, client: /127.0.0.1:59736, server: localhost/127.0.0.1:21812022-02-03 01:58:36,093 - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1273] - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x27ebd79aecc0141, negotiated timeout = 30000WATCHER::WatchedEvent state:SyncConnected type:None path:null[zk: localhost:2181(CONNECTED) 0] ls /hi
我刚加入CDH社区。如何申请archive.cloudera.com/cdh6 谢谢您的帮助!
I'm trying to use kafka data using pyspark but I having difficult because it's in Hashmap type The Question is, how can I convert this to a useful df to be treated in pyspark? This is the output and my actual code: This is the outputThis is my actual code Any suggestion and steps?
We have file names that start with a dot (e.g. ".~tempfile.bin") that we are attempting to list with the ListFile processor. We've tried setting the File Filter to an empty string, as well as various RegEx's (e.g. ".*") and it will not list file names starting with a dot. As soon as we remove the starting dot from the file name, it lists the files. Any ideas on how to list these files starting with a dot?
Hi everybody, i'm submitting jobs to a Yarn cluster via SparkLauncher.Im under HDP 3.1.4.0Now, i'd like to have only 1 executor for each job i run (since ofter i found 2 executor for each job) with the resources that i decide (of course if those resources are available in a machine).So i tried to add .setConf("spark.executor.instances", "1").setConf("spark.executor.cores", "3")But even if i set spark.executor.instaces to 1, i have 2 executors, do you know why? (I read somewhere that the N° of executors = spark.executor.instances * spark.executor.cores .I don't know if that's true, but it seems true.Is there a way to achieve my goal of have MIN and MAX 1 executor for each job???Could be achieve with dynamicAllocation (i'd prefer not to set that since it's not designed for that and can do a lot of stuff that i don't need) ? Thanks in advance!!!
I have a Spark v2.4.5 Spark-Streaming application running on CDP 7.1.7 that listens to relatively small JSON messages from a Kafka topic, de-serializes them, and then writes to an appropriate unpartitioned Hive table with parquet records. This issue also occurred with CDH 5.16 and CDH 6.3.4.The code looks similar to this: def processStream(stream: DStream[ConsumerRecord[String, KafkaMessageWrapper]]): Unit = { stream.foreachRDD(rdd => { // Peek at the message to extract the event type and raw payload val rowRdd = rdd.flatMap(MessageProcessor.processRecord) val rootDF: DataFrame = rowRdd .toDF("topic", "partition", "offset", "eventName", "version", "payload") rootDF.createOrReplaceTempView("data") // Process only the USER records spark.sql(s"select eventName, version, payload from data where eventName = 'USER_CREATE'") .na.drop() // Map the records to the expected schema // This flatten the incoming JSON and does some validation /
Hello, I have an expired certificate for Kafka on my server, my Kafka runs from Cloudera Manager, as follows: But my Kafka Server still working just like my consumers and producers connections via SSL.Can anyone help me to know if it's a bug or misconfiguration?
Hello Experts, I am looking for a regex to configure in "RouteOnContent" processor of Nifi so that based on specific string in flow file content I can route FF. FF content :● rclone.service - Rclone(file transfer tool) Remote Service Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-02-03 09:46:01 UTC; 6h ago Main PID: 23647 (rclone) Tasks: 13 Memory: 61.3M CPU: 5.143s CGroup: /system.slice/rclone.service └─23647 /usr/bin/rclone rcd --rc-no-auth --rc-job-expire-duration=60m --cache-tmp-upload-path=/tmp/rclone/upload I want to search for the string "Active: active (running)" in flow file content, if present route to different path. I tried few regex but did not work as expected. Any suggestion would be much appreciated. ThanksMahendra
Hello,I am still a newbie in NiFi. I Json flowfile that i want to persist in a database using ConvertJsontoSql & PutSql.I have no problem if the names of keys in Json flowfile match with the columns name in the database.But if the keys names are different from column names whilst referring to same thing.For example:Flowfile attribute: surnameDatabase column: lastnameI have no access to alter database. And i have tried JoltTransform which didn't work.Please, how do i map json keys to columns names , even if the key names change it would still point to the same column in the database.Thank you.
Hi, I am seeing some situations where I have two Hive SQL commands running concurrently and I'm getting a lost update. I am running Hive 2.3.6 on EMR with hive.support.concurrency = true and I believe this shouldn't be happening based on what I understand about Hive table locking. (I am not using ACID transactions but the table locking should still prevent lost update as far as I know;) Specifically I have a "load data" statement loading data into table T from an S3 location. I have an "insert overwrite T select * from T" table running concurrently from another Hive connection that deletes some rows from T but should not be affecting rows from the load data statement. I am seeing that the data from the load data statement disappears after the insert overwrite finishes. My understanding is that the load data and insert overwrite should create an exclusive table lock on T so they should allow each other to finish before reading or writing data from T.&n
Hey Folks, I'm unable to get 1.14.0 to run on my linux box, it appears to be unhappy with configuring SSL services. Any advice or suggestions are welcome. 2021-08-03 18:54:06,172 WARN [main] o.a.n.d.html.HtmlDocumentationWriter Could not link to org.apache.nifi.ssl.RestrictedSSLContextService because no bundles were found for ListenFTP2021-08-03 18:54:06,172 WARN [main] o.a.n.d.html.HtmlDocumentationWriter Could not link to org.apache.nifi.ssl.SSLContextService because no bundles were found for ListenFTP2021-08-03 18:54:07,225 WARN [main] net.schmizz.sshj.DefaultConfig Illegal key size2021-08-03 18:54:07,225 WARN [main] net.schmizz.sshj.DefaultConfig Illegal key size2021-08-03 18:54:07,225 WARN [main] net.schmizz.sshj.DefaultConfig Illegal key size2021-08-03 18:54:07,225 WARN [main] net.schmizz.sshj.DefaultConfig Illegal key size2021-08-03 18:54:07,231 WARN [main] net.schmizz.sshj.DefaultConfig Illegal key size2021-08-03 18:54:07,234 WARN [main] net.schmizz.sshj.Defaul
Hi guys, Is there a way to isolate impala daemon resources in one cluster? eg. 6 daemons in 1 Impala Cluster. Is there a method to isolate 2 daemons' resources for testing, 4 daemons' resources for production? Testing queries only use the memory resource in their daemons. HAProxy can forward requests to different daemons, but memory resources are not isolated. If query from testing takes too much memories, production query may failed while executing. The only way I can figure out is setup another impala cluster. I know impala provides admission control, what if the query execution plan estimate memory cost wrong, the actual memory cost is far more than the estimation(eg. 3G VS 150G)? What parameters limit the actual memory usage?
Hello All, I am novice to CDP. I have an existing CDH 6.3.3 setup where we have a 6 node cluster and have deployed various services such as Hive, Impala, Kudu, Spark, HDFS, Sqoop, Yarn . We need to migrate to CDP 7.1.6. Could anyone please provide a detailed steps that can be followed for the migration.
from impala.dbapi import connectimport pandas as pdclass IMPALA: def __init__(self, host, port, user, db): self.host = host self.port = port self.user = user self.db = db def __GetConnect(self😞 if not self.db: raise (NameError, "没有设置数据库信息") self.conn = connect(host=self.host, port=self.port, user=self.user, database=self.db) cur = self.conn.cursor() if not cur: raise (NameError, "连接数据库失败") else: return cur def ExecQuery(self, sql): cur = self.__GetConnect() cur.execute(sql) resList = cur.fetchall() self.conn.close() return resList def ExecNonQuery(self, sql): cur = self.__GetConnect() cur.execute(sql) self.conn.commit() self.conn.close()user = IMPALA('172.17.200.112', 21050, 'q_cluster', 'rawdata')sql = 'select count(DISTINCT(user_id)) as cnt from events where date = CURRENT_DATE() /*SA(production)*/'re = user.ExecQu
Hi, I am trying to run this import command: sqoop import --connect jdbc:postgresql://[host]:[port]/[db] --username [user] --password-file [path_to_pass] -table [table] --hive-import -hive-drop-import-delims --as-parquetfile --parquet-configurator-implementation hadoop --hive-table district_startdates_test --target-dir [target_with_db] -m 1 --hs2-url="jdbc:hive2://[cdp]/;ssl=true;transportMode=http;httpPath=[path_to_proxy];user=[user];password=[cluster_passw]" --verbose but it gets stuck at DEBUG manager.SqlManager: No connection paramenters specified. Using regular API for making connection. ...any idea?thanks
Hello.I would like to use the kafka connect to connect the kafka brokers provided by cdp and on-premise kafka brokers. To do that, I need to set the configuration value "connector.client.config.override.policy".But I could not find the menu to set custom configuration of kafka connect. Could you let me know how to set the custom configuration of kafka connect especially "connector.client.config.override.policy".?
Hello,We need advise about advanced Kafka configuration in Cloudera We are using cloudera env installed on 6 servers per following distribution:Namenode1-2Datanode1-3Application node kafka service is installed on data nodes 1-3 and we would like to know:How can we configure Kafka port per hostname and not per service?we would like to have following outcome for example:datanode1 - remain with kafka default port 9092datanode2 - will be configured with new port #datanode3 - will be configured with new port # ThanksNoam
Sometimes the repo has all the versions of logredactor, sometimes it only has 2. This varies every time I hit refresh. I'd guess there's servers out of sync with each other behind a load balancer maybe? https://repository.cloudera.com/artifactory/cloudera-repos/org/cloudera/logredactor/logredactor/Our project relies on 1.0.3 for a Spark dependency, is there any chance of this being fixed or should we start just hosting it locally?
Hi. I was wondering if anyone can confirm or deny that kerberized hive can (how?) work with not kerberized Zookeeper (+kerberized HDFS and Yarn). Unless I overlooked something (which is very possible), it seems like in line 93 of attached log hive is trying to auth against ZK, and since there is any ZK security enabled this attempt failed. If I'm right, is there any property that I can set up to disable auth attempts on hive side? hdfs/yarn seems to have zero problems working with unsecured ZK.Or perhaps we need to enable kerberos on ZK nodes because hive won't work otherwise, period?
Hi All, I am trying to achieve incremental sqoop import into hive when a new record is created as well when updates happen to the existing records. We have tables having both created date column and modified date column. But the modified date column will be updated only when there is any update in the existing records and will remain null when a new record is inserted. Only the created date will be updated when new records are created. So, when we try the incremental lastmodified option it always looks for the modified date column but our source tables doesnt have values in the modified date column always as it keeps NULL for new records and only updates the value when an existing table gets modified. So, for this kind of source DB tables with such columns is there any solution in sqoop import. Also, sqoop incremental with lastmodifed doesnt work with hive tables and we have to create a table already and then run this incremental lastmodified&
Example : Input : 10/12/2019 I need to get subsequent Sunday of given input date
I saw this kind of notation/style using double curly braces everywhere in HDP(Ambari) or CDP (CMS) UI. Below is a configuration value under zeppelin.shiro.knox.main.block for Zeppelin configuration. (This is a random sample I picked and this question is not about Zeppelin.)++krbRealm.signatureSecretFile={{CONF_DIR}}/http_secret++I understand that I can simply overwrite {{CONF_DIR}} with the actual path. However, I wonder whether {{CONF_DIR}} an ansible variable? If yes, how do I define the variable CONF_DIR in CDP Cloudera Manager?https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#defining-simple-variables Regards,
I am a beginner in NIFI. And i would like to read live logs from a remote server to a Nifi flow on another system. I have no access to install Nifi on that remote server, please what is the best method to implement the above scenario.Thanking you so much for your reply.
We're trying to upgrade from TLSv1.0 to TLSv1.2 for the below configuration but getting error as attached.These are the installed versionsHDF: 3.1.0Nifi: 1.5.0.3.1.0.0-564Ambari: 2.6.2.2HDP: 2.6.5.1100. we have tried following the steps from this page and it didn't worked as well.https://community.cloudera.com/t5/Support-Questions/Nifi-SSL-TLS-qestion/td-p/285528Kindly help me to resolve this issue.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.