Find answers, ask questions, and share your expertise
Recently active
I need some inputs on relationship definitions in a custom processor code:1. Do I need to define all three(success, failure, original) relationships in processor class?2. Do I need to handle all three relationships(using session.transfer(....))?3. Why do I need to transfer original flowfile as it has been processed?
Any hive bucketing experts here?I have this scenario where my each of my individual partitions needs to be bucketed at a different level. I have tried the following scenarios but it doesn't work.Created a bucketed table and created a partition (date_id='2022-10-22') and set the bucketing number to 64.Result: No of files created in the target partition is equivalent to no of buckets in the source table (6). Expected file count is 64.Created a non bucketed table and created a partition (date_id='2022-10-22') and set the bucketing number to 64. Result: No of files created the target is not related to source files count eitherPlease share your thoughts.Thanks
Zookeeper canary failed and Quorum membership failed, I have 3 ZK nodes, I test the connection between the nodes using telnet port 218,4181 are openoutput of the log file:2023-09-29 23:21:12,409 INFO org.apache.zookeeper.server.PurgeTxnLog: Removing file: Sep 22, 2023 11:21:12 PM /var/lib/zookeeper/version-2/snapshot.1ef000000062023-09-29 23:21:12,409 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task completed.2023-09-30 23:21:12,401 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task started.2023-09-30 23:21:12,404 INFO org.apache.zookeeper.server.persistence.FileTxnSnapLog: zookeeper.snapshot.trust.empty : false2023-09-30 23:21:12,407 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task completed.2023-10-01 07:48:51,957 WARN org.apache.zookeeper.server.persistence.FileTxnLog: fsync-ing the write ahead log in SyncThread:1 took 1479ms which will adversely effect operation latency. File size is 134217744 bytes. See the ZooKeeper trouble
When a try this script, i have this error raise Exception('No LDAP URL was specified') on hue/apps/useradmin/src/useradmin/ldap_access.py at master · cloudera/hue · GitHub . So i decided to read the following lines : ldap_url = ldap_config.LDAP_URL.get()username = ldap_config.BIND_DN.get()password = desktop.conf.get_ldap_bind_password(ldap_config)ldap_cert = ldap_config.LDAP_CERT.get()search_bind_authentication = ldap_config.SEARCH_BIND_AUTHENTICATION.get()if ldap_url is None:raise Exception('No LDAP URL was specified')Its means that ldap_url is None, so i tried to prind ldap_config and i have :"<class 'desktop.lib.conf.BoundContainerWithGetAttr'>(config=<desktop.lib.conf.ConfigSection object at 0x7f5b80fb0250>, bind_to={'auth': {'jwt': {}}, 'database': {}, 'query_database': {}, 'task_server': {}, 'session': {}, 'knox': {}, 'smtp': {}, 'websockets': {}, 'raz': {}, 'ozone': {}, 'kerberos': {}, 'tracing': {}, 'metrics': {}, 'slack':
I have a usecase which involves creating a new Record(actually several records) from a record in input flowfile, and writing it in output flowfile.PS: I would use avro reader to read input and avro writer to write into output.What is idiomatic way of doing it in nifi?
Hi,in a Unix environment, I get this error while connecting to Hive via Kerberos, using the library pyHive in a python script:thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server krbtgt/LOCAL.IT@EXAMPLE.IT not found in Kerberos database)'I am able to connect to Kerberos using "kinit -kt user user.keytab", and also via Hive ODBC driver. I use the same krb5.conf file, with Default Realm = EXAMPLE.IT.With kinit, I obtain, correctly:Default principal: user@EXAMPLE.ITValid starting Expires Service principal09/28/23 11:05:16 09/28/23 11:05:16 krbtgt/EXAMPLE.IT@EXAMPLE.ITThe error is only using pyHive library. In the error, the library uses the domain LOCAL.IT instead of the one specified in krb5.conf, that is EXAMPLE.ITMy connection in pyHive:conn = hive.Connection(host="host.domain.it",
Hi,I want to read data from Ranger Rest API ...assets/accessAudit...Works fine but need to set the startDate like I can do it in the Ranger WebUI in the Audit part.Is there any docu where to find how to do that? Example: ...server:port/service/assets/accessAudit?startDate=06/02/2023&resourceType=@table&accessType=select&sortBy=eventTime&sortType=descending&excludeServiceUser=falseIn this example the startDate does not work, only getting the data from the actual day.If I use the startDate in the Ranger WebUI it works fine. BRRoland
Hi Team,I am a newbie for nifi. I am trying to connect mssql 2008 by using DBCPConnectionPool.The following are my setting: Docker Desktop:v4.19.0Nifi:v1.22.0JDBC Driver:jtds-1.3.1.jarJDBC Driver location:/opt/nifi/nifi-current/lib/jtds-1.3.1.jar DBCPConnectionPool Configure Controller Service: Database Connection URL:jdbc:jtds:sqlserver://xxx.xxx.xx.xx:1433/xxxxxDatabase Driver Class Name:net.sourceforge.jtds.jdbc.DriverDatabase Driver Location(s):/opt/nifi/nifi-current/lib/jtds-1.3.1.jarDatabase User:xxxPassword:xxxValidation query:Select 1 as test And I try to Verify Controller Service Configuration get the message bellow: org.apache.nifi.dbcp.DBCPConnectionPool DBCPConnectionPool[id=67dc5ad3-0189-1000-09ac-b19f6c25590c] Failed to establish Database Connectionorg.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: Cannot create PoolableConnectionFactory (Network error IOException: Connection timed out (Connection timed out
I want to transfer data from HDP 2.6 with kerberos authentication via spark to CDP with kerberos authentication. I am trying to run 2 kerberos ticket in a server but not able to run. One kerberos ticket will be used for reading data from HDP and second kerberos ticket for writing data in CDP cluster. Anyone has any better idea apart from spark please let me know
Hi Team,I already created 3 node Nifi secured cluster with self signed certificated , where I used nifi-toolkit to do the task. But now I have signed certificate (shared by IT team), the pem and key file. Can you please help (step by step guide) to create 3 node nifi cluster using that certificate?
Hello,We have several Data Hub Clusters on CDP - PC, currently conducting health checks manually, which is time consuming and repetitive. Would like to know if there are some automated scripts / ways, we could get this task completed which would give us the health status of nodes, Cloudera services running on them.Any assistance / guidance is appreciated.
I am trying to run a merge query in PUTSQL after using ExecuteSQL to pull from source database. I then pass the results through ConvertAvrotoJSON and then to convertJSONToSQL (set to INSERT since there is no UPSERT for SQL server database). I want to now run the merge query to update if the primary key is matched or insert if not, but I have been getting all sorts of errorsInput flowfile has the following attributessql.args.1.type12sql.args.1.valueA-001sql.args.2.type12sql.args.2.valueDDDsql.args.3.type12sql.args.3.value2Bsql.args.4.type12sql.args.4.valueAAAsql.args.5.type12sql.args.5.value2Bsql.args.6.type12sql.args.6.valueBBBsql.args.7.type93sql.args.7.value1954-08-01 22:46:50.73sql.catalogCUSDBsql.tableCUSTOMERSuuid50a3daf9-e5d8-422b-b6cb-9c92da723c55I created the following attributes in UpdateAtributesI directed this flowfile to UpdateAttribute where I created above properties like this sql.args.1.type = 12; sql.args.1.value = ${vkey}sql.args.2.type = 12;
Hello,trying to setup zeppelin + livy-on-spark3.Livy-on-spark2 is up and rspark3.sql runs fine, any spark3.pyspark code returns error "Interpreter died:".What could be wrong?
Hello Experts,I have a requirement where I need to re-load my custom processors nar without restarting Nifi.I tried with nifi.nar.library.autoload.directory option, If I freshly place new nar first time in autoload directory it loads automatically.But if I replace the nar in autoload directory again with some enhancements, it does not get reloaded in nifi.I tried with changing nar version, with that nifi loaded that new version nar but that resulted in 2 different versions processors in Nifi (it does not unload the pre version nar)Is there any any "auto reload" feature for custom nar or something like unload prev version and load new version automatically without restart?Any help/suggestion is much appreciated.ThanksMahendra
Hi Support,Would like to ask is that possible to set the Global_parameter in processor configuration via nifi rest api instead of using UI ?
I developed a custom hook on CDH (6.2. X), implement the HiveDriverRunHook interface and ExecuteWithHookContext interface. It runs smoothly, but when I migrate the hook to CDP (7.1. X), I report an error and cannot execute it. I suspect it was caused by the Tez engine, but I cannot solve it and need help,thanks very much
Hello Team,I am trying to use the underscore "_" in the column name example "_name" but the create statement is failing. i also wanted to use the reserved keywords example "transform" as column name but that is also not working.I tried setting the values for keyword and for identifiers while running command still it is giving me error when running via beeline Following are the commands and the error that i am getting :Command : sudo -u hive beeline -u "jdbc:hive2://cdp1:2181,cdp2:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;;principal=hive/_HOST@hdpcluster.test" -n hive --showHeader=false --outputformat=tsv2 -e "SET hive.support.quoted.identifiers=column;use jayesh; create external table testkeyword1( `transform` string);";error : Error: Error while compiling statement: FAILED: ParseException line 1:45 cannot recognize input near ')' '<EOF>' '<EOF>' in column type (state=42000,code=40000)------------------------------------------
Hi,I am trying to convert json to csv in nifi. My json is something like below {"tokens":["12343455577666","2134421241241","124142141411445","21425654768686"]}and my csv should be like belowtokens12343455577666213442124124112414214141144521425654768686Please help me. Thanks!
Hi all, Have hit a snag when trying to setup a Ozzie workflow with combination of CTE and Insert Statement, not sure why, please help me look at the code, thanks. set hive.exec.dynamic.partition=true;set hive.exec.dynamic.partition.mode=nonstrict;insert into table A partition(date)with test as(select col1 as name1 , col2 as name2, col3 as name3 from table B),select * from test
Hello everyone,I am new for spark processing. I need you help my problem when transform data from plat file to hive orc table. Below is my process flow using pyspark:1 - Use pyspark to load flat file to dataframe2 - Transform data in dataframe and insert to hive table(parquet)3 - Insert data from hive(parquet) to orc format Step 1 and 2 is fast, but step 3 is too slow because it use much memory. Sometime it stuck cannot continue. Please help to advice and recommend the better flow. Thanks Here is sample code:-- loading.pyimport pysparkfrom pyspark import SparkContext, SparkConffrom pyspark.conf import SparkConffrom pyspark.sql import SparkSessionfrom pyspark.sql import HiveContext,SQLContextfrom pyspark.sql.types import StructType,StructField, StringType, IntegerTypefrom pyspark.sql.types import ArrayType, DoubleType, BooleanTypefrom pyspark.sql.functions import input_file_name,col,array_containsspark = SparkSession.builder.appName("testing..").enableHiveSupport().g
Hi, i need to know how to create a code in both PIG and Hive for this data: I need to obtain the sum of the newcases for the continents, as well as which country has had the highest number of cases in each continent and their number. somethig like: For pig i was trying somethig like: Any one knows how to do it? Thanks.
after trying a bunch of things I would like to know if there's a way to connect local spark to Hive without getting this error - This happens right after I successfully login through kerberos. I have copied my hive-site.xml from server to local, as spark on server is working perfectly fine. Am I missing any files? Hi, after trying a bunch of things I would like to know if there's a way to connect local spark to Hive without getting this error - ```23/07/12 13:26:58 ERROR metastore: Couldn't create client transportjava.io.IOException: Could not instantiate SASL transportat org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Client.createClientTransport(HadoopThriftAuthBridge.java:222)at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:432)at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:245)at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<i
Hi everyone, So I've inherited a kerberized Cloudera cluster and I'm learning as I go. Right now I'm trying to get Airflow to work with our Spark jobs but without success. As I understand Airflow was installed by our OS team only after the cluster was configured by Cloudera. It runs on our edge node from where we run our jobs. Basically I'm using bash operators for my test DAG with the following tasks: Task 1:Kinit the user that is running the script:"echo 'password' | kinit user@domain" Task 2:Download some files from some location. Task 3:spark-submit /path/to/script.py Task 1 and 2 work fine, but task 3 fails with the following: py4j.protocol.Py4JJavaError: An error occurred while calling o32.csv.: org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS] I am a bit confused by this as I am am authenticating the user as a f
Hello Experts,After changing MIT Kerberos to AD Kerberos and Regenerating all the Kerberos credentials in CM the zookeeper, YARN etc. is not starting. There is an error about the Active Directory samaccount not able to login as the zookeeper principal. I checked that the principals are created in the AD OrgUnit for Cloudera. And the $ kinit -kt zookeeper.keytab zookeeper/redacted@ADREALM on the linux servers works fine. Any thoughts how to fix? SERVICE_TYPEZOOKEEPER SEVERITYCRITICAL STACKTRACEjavax.security.sasl.SaslException: Problem with callback handler [Caused by javax.security.sasl.SaslException: redacted@ADREALM.COM is not authorized to connect as zookeeper/redacted@ADREALM.COM] at com.sun.security.sasl.gsskerb.GssKrb5Server.doHandshake2(GssKrb5Server.java:333) at com.sun.security.sasl.gsskerb.GssKrb5Server.evaluateResponse(GssKrb5Server.java:161) at org.apache.zookeeper.server.quorum.auth.SaslQuorumAuthServer.authenticate(SaslQuorumAuthServer.java:
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.