Find answers, ask questions, and share your expertise
Recently active
Is it possible for Hive Metastore to support multi-tenancy?I'm trying to build a multi-tenant feature in Hive Metastore. It means that there will be multiple user and each user can create databases, tables, etc. Also, the database or tables created by that user cannot be accessed by another users.I've thought maybe by providing an authentication to Hive will give a multi-tenancy feature. But after tried it with Kerberos, it seems that different users cannot create database with the same name, for example when user1 have a database named dbA then user2 cannot create database named dbA. I've not tried using authorization tools like Ranger, but it looks like it will not give me multi-tenancy feature (different user can create database with the same name).There are several solutions that I can think of, that is:- Each user have their own Metastore. It seems inefficient to have a lot of hive metastore, but it is the most straight forward solution to me.- Include username in database name. D
Failed to regenerate the missing credentials in cm, the error log is as follows:Key log information:com.cloudera.cmf.command.CmdExecException: java.lang.IllegalArgumentExceptionCaused by: java.lang.IllegalArgumentExceptionERROR CommandPusher-1:com.cloudera.cmf.model.DbCommand: Command 61246(GenerateCredentials) has completed. finalstate: CANCELLED,success:false,msg:java.lang.IllegalArgumentException It is worth noting that the import of kerberos account manager credentials in CM is successful.And the keytab in the /var/run/cloudera-scm-server directory can be kinit successfully /var/log/cloudera-scm-server/cloudera-scm-server.log The log error is as follows:Key log information:ERROR Staleness-Detector-1: com.cloudera.cmf.service.config.components.ProcessStalenessDetector: Failed to check staleness for service client configs : DbService{id=75,name=atlas} com.cloudera.cmf.service.config.ConfigGenException: Failed to generate client configs Caused by: java.la
We are migrating from Hortonworks (HDP) to Cloudera (CDP) and having difficulties connecting to the hbase.The following code works when using a HDP host: from thrift.transport import TSocket, TTransport, THttpClientfrom thrift.transport.TSSLSocket import TSSLSocketfrom thrift.protocol import TBinaryProtocol, TCompactProtocolimport app.hbased.Hbase as Hbasehost = "hdp.mycompany.com"port = 9090sock = TSocket.TSocket(host, port)saslServiceName = "hbase"transport = TTransport.TSaslClientTransport(sock, host, saslServiceName, mechanism="GSSAPI")protocol = TBinaryProtocol.TBinaryProtocol(transport)client = Hbase.Client(protocol)transport.open()table_names = client.getTableNames()print table_names However, when changing the host to a CDP server:host = "cdp.mycompany.com"we get the following error: Traceback (most recent call last):File "C:\Users\myuser\apps\app\test\test.py", line 20, in <module>table_names = client.getTableNames()File "C:\Users\my
I am trying to learn the basics in cloudera and Impala and by reading this documentation :https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/admin_cluster_util_custom.html#concept_jp4_4bh_hxI saw that with tsquery I can monitor Impala. I want to ask :1) where can I run these kind of queries?2) where can I find the attributes like category and clusterName in cloudera? Thanks in advance.
Hi,We have recently made our external ZooKeeper's implement SSL, Now Nifi is failing to startup. 2021-09-23 15:46:01,711 ERROR [Curator-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl Background retry gave uporg.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:972) at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943) at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66) at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecut
Hello, We are running single node nifi in 8 core machine and configured 'Maxmum Timer driven thread count' as 300.Once in a while Nifi get totally stuck (wont accept flowfiles) and also no app log will generate till we restart nifi manually. So wondering if its due to nifi thread starvation... In below article 'NiFi Thread starvation' section its mention that system will stuck in resource competition cycle.https://community.cloudera.com/t5/Community-Articles/NiFi-HDF-Dataflow-Optimization-Part-2-of-2/ta-p/245113 So any idea if nifi needs more threads than system available core then will there be any chance of nifi to get stuck ? @Wynner Thanks,Mahendra
We have a job that was running fine in 7.1.4, but is now failing after we went to 7.1.6. It fails with permission issues writing to a directory in /user/yarn. The job runs as a different user, and we are wondering why it started writing what looks like temporary output to a directory under /user/yarn, that the user running job doesn't have access to?
We use the Cloudera ODBC Driver for Impala from c# .Net using an OdbcConnection. We are using MIT Kerberos on Windows and keytab authentication. Occasionally, the process begins throwing the bellow Exception. Over time, the exception seems to correct itself, however the only known fix to us is to restart the process (which is a problem..) Exception:[Cloudera][ThriftExtension] (3) Error occurred while contacting server: ETIMEDOUT. The connection has been configured to use a SASL mechanism for authentication. This error might be due to the server is not using SASL for authentication. Connection String:Driver={Cloudera ODBC Driver for Impala};Host=[ImpalaHostName];Port=21050;AuthMech=1;KrbRealm=[KerberosRealm];KrbServiceName=impala;UseKeytab=1;KrbFQDN=_HOST;UID=[UserName];UPNKeytabMappingFile=[jsonKeyTabMappingFile];UseNativeQuery=1;CurrentSchemaRestrictedMetadata=1;Schema=[Database];SocketTimeout=120 We have also occasionally seen the bellow exceptio
Hi,I have 6 disks installed on each server with 3 data nodes. I am having 3 disks of 1TB and 3 disk of 4TB. Now what is happening that the smaller disk 1 TB are getting full frequently and Impala stops working. Is there a way that I can replicate those disks with some percent of free space?Like none of the 6 disk should exceed 80% of usage until the balancer completes.
Hello I have a Clouder Manager 4.8 cluster with Kerberos enabled When I configured HDFS/Hbase/Zookeeper to use Kerberos, Cloudera Manager generated all the principals and keytabs for all the services on each node However, I have two unmanaged namenodes that I want to use as part of my cluster - Cloudera Manager does not know about these nodes, so it did not generate the principals and keytabs for the services on these nodes I followed the steps for generating the keytabs/principals as part of the manual CDH setup, but the guide told me to move my keys tabs to /etc/hadoop/conf, but there are no other keytabs in that folder So I need to know where does Cloudera Manager store its generated keytabs Or am I supposed to merge the manually created keytabs with the generated keytabs somehow? Thanks for any help in advance
Hi, I have enabled kerberos in my cloudera cluster using Cloudera Manager. Kerberized cluster is running fine. But I'm unable to get the location of keytab files (eg. hdfs.keytab, yarn.keytab etc). The keytab location property is also missing from the *-site.xml files. Where can I get the location of those keytab files. Regards, Amit
Hi. I am trying to write a text file from execute script with python. Whenever the processor executes, it creates a locked text file. How can I overcome this problem?Following is the codefrom time import gmtime, strftimeimport datetimenow = datetime.datetime.now()current_time = now.strftime("%H:%M:%S")with open('**path to directory**/time.txt', "a") as f:current_time = str(current_time) + ('\n') f.write(current_time)f.close()
How can I see the memory % that is used right now in Impala? Also I want to check the whole memory size
Hi All, I get the following issue when logging in to nifi UI , user success login but UI not showing NIFI Menu :2021-09-01 13:24:02,942 INFO [NiFi Web Server-1911] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[cdpadmindev@DOMAIN], groups[] does not have permission to access the requested resource. Unable to view the user interface. Returning Forbidden response. I'm using cloudera private base with kerberos and ADThe NIFI configuration is still the default, is there anything that needs to be changed? Thanks WB
Two night ago a server that contains iSCSI/lvm volumes had a crash. that server had three volumes from one Cloudera node that has HDFS NameNode, DataNode and JournalNode roles, beside other Cloudera/Hadoop roles. Those volumes contain all the data from all the roles that node has. I figure it out how to solve the volume problem and Kudu went Up (the data is in Kudu). But HDFS didn't, so Impala and other services are not running either.I've try a lot of possible solutions with no luck at all. Now CM says all three journal nodes are up, but none of the NameNodes are up because they can't connect to the Journal. This is the error I see: 2021-09-21 11:28:04,945 FATAL org.apache.hadoop.hdfs.server.namenode.FSEditLog: Error: recoverUnfinalizedSegments failed for required journal (JournalAndStream(mgr=QJM to [10.241.109.57:8485, 10.241.109.81:8485, 10.241.109.76:8485], stream=null))java.io.IOException: Timed out waiting 120000ms for a quorum of nodes to respond. at org.apache.hadoo
Hi Everyone, I have hive partitions folder at HDFS location, but all the partitions folders are in upper case.i.e. YEAR=2021/MONTH=07/DAY=31/HOUR=00 like this. in hive when i am creating table it taking partition columns in lowercase/year=2021/month=07/day=31/hour=00 like this. since hdfs is case sensitive and hive is case insensitive so hive is expecting partitions column in lowercase at hdfs location and I am not able to see any partition in my hive table. so is there any way to handle this case.either hive column in uppercase or Recursively change all hdfs partitions column in lowercase. I have 8000+ partitions (1day=24 hours=30 days=12 months(24*30*12=8640) for 1 year so not able to rename every folder manually. someone kindly suggest.
Dear,I am getting the below error on atlas role log, kindly support.how to know if the vertex_index exists? GraphBackedSearchIndexer.initialize() failed (GraphBackedSearchIndexer:376)org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://xxxxxxxxxxxxxx:8993/solr: Can not find the specified config set: vertex_index at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:668) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:265) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248) at org.apache.solr.client.solrj.impl.LBSolrClient.doRequest(LBSolrClient.java:368) at org.apache.solr.client.solrj.impl.LBSolrClient.request(LBSolrClient.java:296) at org.apache.solr.client.solrj.impl.BaseCloudSolrClient.sendRequest(BaseCloudSolrClient.java:1143) at Regards,
Ex: como gerar através deste Json abaixo e gerar 4 flow files?[ {"ID_WA_DESTINATARIO" : "5599999999999","DES_MENS_NMO" : "Você está recebendo anexa 1a via de sua fatura.","COD_IDEN_MENS_ENV_NMO" : "xptoqwerzxcv"}, {"ID_WA_DESTINATARIO" : "5599999999999","DES_MENS_NMO" : "Você está recebendo anexa 1a via de sua fatura.","COD_IDEN_MENS_ENV_NMO" : "xptoqwerzxcvb"}, {"ID_WA_DESTINATARIO" : "5599999999999","DES_MENS_NMO" : "Você está recebendo anexa 1a via de sua fatura.","COD_IDEN_MENS_ENV_NMO" : "xptoqwerzxcvc"}, {"ID_WA_DESTINATARIO" : "5599999999999","DES_MENS_NMO" : "Você está recebendo anexa 1a via de sua fatura.","COD_IDEN_MENS_ENV_NMO" : "xptoqwerzxcvd"} ]
Dear all I have installed CDP private cloud on single node, Also i added hive, hive-on-tez and Hue services but unfortunately Hue not working with hive database and hiveserver2 of hive-on-tez stopping frequently.On hue UI this error is shown while choosing hive databaseCould not connect to any of [('xx.xx.xxx.xxx', 10000)] (code THRIFTTRANSPORT): TTransportException("Could not connect to any of [('xx.xx.xxx.xxx', 10000)]",) So what shall i do to work on hive using hue editor? thanks in advance
Hi, I'm pretty new to NiFi and don't have much experience with it, so it's the reason I'm here. Yesterday, NiFi was running smoothly and for some reason it stopped working. Every time I tried to start : ./nifi.sh start or any other command it showed me "killed". Later on, I found that java was killed by OOM. Fixed this by restarting server, but it won't start. In the "nifi-bootstrap.log" I found that it's getting shut down due to this error:I haven't installed any packages, so don't know why it's giving me this error.Setup:Ubuntu 20openjdk 11.0.11nifi 1.13.2Connector: mysql-connector-java-8.0.25.jarWhat should I check? How to fix this error and start nifi?Thanks in advance.
Hi,Firstly, I make Hue LDAP integration and then Cloudera manager user interface administration->security enter LDAP information and cloudera-scm-server restart via console I am reaching the Cloudera manager interface but it does not accept any users (admin-admin) that I have used before and LDAP users. I am getting a username password error for all users and passwords.I try to reset username &password via below link but it did not work. http://mynotesonhadoop.blogspot.com/2017/07/reset-admin-password-on-cloudera-manager.html I can see below logs in /var/log/cloudera-scm-server/cloudera-scm-server.log Caused by: org.springframework.ldap.BadLdapGrammarException: Failed to parse DN; nested exception is org.springframework.ldap.core.TokenMgrError: Lexical error at line 1, column 1. Encountered: "(" (40), after : ""at org.springframework.ldap.core.DistinguishedName.parse(DistinguishedName.java:232)at org.springframework.ld
Hello, Wanted to know what features/components in CM/CDH 6.3.3 would stop working once the enterprise license is expired. Thanks Wert
I've been trying to run an SQL that comes from a GenerateTableFetch processor, so when the SQL will be executed the following error is thrown:ExecuteSQL[id=ba6f39d7-4ea4-19bd-984a-1b3176886957] Unable to execute SQL select query SELECT * FROM MY_SPATIAL_TABLE WHERE 1=1 for StandardFlowFileRecord[uuid=fafa1a55-5345-4588-b0be-9e216fc86099,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1631702321511-1, container=default, section=1], offset=688879, length=46],offset=0,name=0e20eaaa-f1a7-4ce8-8cf2-e4a7858c6adc,size=46] due to java.lang.IllegalArgumentException: createSchema: Unknown SQL type 2002 / MDSYS.SDO_GEOMETRY (table: NiFi_ExecuteSQL_Record, column: GEOM) cannot be converted to Avro type; routing to failure: java.lang.IllegalArgumentException: createSchema: Unknown SQL type 2002 / MDSYS.SDO_GEOMETRY (table: NiFi_ExecuteSQL_Record, column: GEOM) cannot be converted to Avro type↳ causes: org.apache.nifi.processor.exception.ProcessException: java.lang.IllegalArgument
We noticed for few of the hive tables, during the maintenance window, just after the cluster restart, impala does not show the data accurately but it shows properly in hive. Once we perform invalidate metadata and refresh on the underlying table, it starts working fine. It was okay to use the work around but this is happening every month consistently after the cluster restart and so we needed to find the root cause and solution. Surprisingly issue is reported for only two tables, one of them is view. These are external hive table with parquet format. How to investigate the issue any further?
How can we get 1 MD5 value for a hive table? Do not need a MD5 value for each record in the table. Is there a way to query the MD5() at a table level. Thanks
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.