Member since
02-14-2018
3
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
8731 | 03-15-2018 09:02 AM |
02-27-2019
02:53 AM
Late reply though. It is indeed possible to export the underlying parquet files of the table with the limitation - 1. Like other file formats support, BlobRef is not supported. 2. Files are read via Kite SDK. Currently Kite requires .metadata present. https://issues.apache.org/jira/browse/SQOOP-1394
... View more
03-15-2018
09:02 AM
I got this to work as follows (but there's a twist when dealing with Eclipse from Windows): System.setProperty("javax.net.ssl.trustStorePassword","xxxxxx"); System.setProperty("java.security.auth.login.config", "C:\\my_jaas.conf"); String zkHosts = "zookeeper1.com:2181,zookeeper2.ghp.com:2181,zookeeper3.ghp.com:2181/solr"; Krb5HttpClientBuilder krbBuild = new Krb5HttpClientBuilder(); SolrHttpClientBuilder kb = krbBuild.getBuilder(); HttpClientUtil.setHttpClientBuilder(kb); CloudSolrClient solrServer = new CloudSolrClient.Builder().withZkHost(zkHosts).build(); String collectionName = "test_col"; solrServer.setDefaultCollection(collectionName); solrServer.connect(); SolrQuery parameters = new SolrQuery(); parameters.set("q", "*:*"); try { solrServer.commit(); QueryResponse response = solrServer.query(parameters); for (SolrDocument solrDocument : response.getResults()) { System.out.println(" " + solrDocument.toString()); } krbBuild.close(); solrServer.close(); } catch (SolrServerException | IOException e) { e.printStackTrace(); } If you are working from a Windows Environment and Windows is generating your TGT Kerberos keys and Kerberos is hooked into AD (that is, not using MIT Kerberos), then you need to update the registry as follows (thanks to Cloudera Systems Engineer Tom Roach): On windows, to use your kerberos tickets from AD in your Java program, you need to setup this Windows registry. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters Value Name: AllowTgtSessionKey Value Type: REG_DWORD Value: 0x01 jaas.conf: Client { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=false useTicketCache=true principal="myuser@MYDOMAIN.COM"; };
... View more