Ask questions, get answers, or find community-sourced articles
Recently active
Hi, I am looking to develop a visualization dashboard from hdfs or hive tables in grafana, as far i found that it is used only for telemetry. is that true ? what are other options?
I'm using the Zeppelin 0.10.1 container. The first launch of the container is successful.If you stop the container and start it again, it does not startcontainer log on startzeppelin | INFO [2023-10-09 16:09:59,673] ({main} ZeppelinLocationStrategy.java[locate]:44) - Load configuration from /opt/zeppelin/conf/zeppelin-site.xmlzeppelin | INFO [2023-10-09 16:09:59,681] ({main} ZeppelinLocationStrategy.java[locate]:44) - Load configuration from /opt/zeppelin/conf/zeppelin-site.xmlzeppelin | INFO [2023-10-09 16:09:59,796] ({main} ZeppelinConfiguration.java[create]:135) - Server Host: 0.0.0.0zeppelin | INFO [2023-10-09 16:09:59,796] ({main} ZeppelinConfiguration.java[create]:139) - Server Port: 8088zeppelin | INFO [2023-10-09 16:09:59,796] ({main} ZeppelinConfiguration.java[create]:141) - Context Path: /zeppelin | INFO [2023-10-09 16:09:59,797] ({main} ZeppelinConfiguration.java[create]:142) - Zeppelin Version: 0.10.1zeppelin | INFO [2023-10-09 16:09:59,821] ({main} Log.java[initialized]:16
Hi, we are trying to create an alert to get notification when no row was inserted into a given HBase table in given period of time. The following command was used: IF (SELECT total_write_requests_rate_across_regionservers WHERE serviceName=$SERVICENAME AND max(total_write_requests_rate_across_regionservers ) = 0 AND entityName = "hbase" AND category = "SERVICE") DO health:badbut the name of HBase table is missing. The `htableName` property is mentioned under the https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_dg_tsquery.html#concept_d2g_k11_dk__section_cdx_sbp_3l chapter, but it does not work - the command return empty results after putting the `htableName` attribute to WHERE condition. Could I please to an advice, how to get a notification when entities are not inserted to the HBase table?
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.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.