Member since
05-05-2015
6
Posts
0
Kudos Received
0
Solutions
01-13-2016
12:58 AM
Thanks for your reply. Will MapReduceIndexer Tool handle CSV files? Can you point me to a quick tutorial / example for MapReduceIndexer Tool ? Many Thanks !
... View more
01-11-2016
05:36 AM
I am trying to import some data which is currently sitting in a MySQL database to Cloudera Search (SolrCloud) but just cant get it to work. Here's my setup: 4 node cluster CDH 5.4.4 Solr installed and running fine - checked with the enron-email sample data Step 1. Downloaded solrconfig files using the command: solrctl instancedir --generate $HOME/solr_configs2 Step 2. Modified solrconfig.xml to include the following lines: <lib dir="../../../contrib/dataimporthandler/lib/" regex=".*\.jar" /> <lib dir="../../../dist/" regex="solr-dataimporthandler-\d.*\.jar" /> <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">data-config.xml</str> </lst> </requestHandler> Step 3: Created a file data-config.xml with the following contents: <dataConfig> <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://<server_ip>/<dbname>" batchSize="-1" zeroDateTimeBehavior="convertToNull" user="<db_user_name>" password="<db_password>"/> <document name="article"> <entity name="id" query="SELECT .... SQL quer here ...." > <field column="id" name="id" /> <field column="article_id" name="article_id" /> .... </entity> </document> </dataConfig> Step 4 Created schema.xml to conform to the schema being returned by the MySQL query Step 5 Uploaded config to SolrCloud using the command: solrctl instancedir --create impactprint $HOME/solr_configs2 Step 6 Tried creating the collection using the command : solrctl collection --create name_of_collection -s 2 -c name_of_collection The above generates the following error : Error: A call to SolrCloud WEB APIs failed: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Mon, 11 Jan 2016 10:57:04 GMT <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"> <int name="status"> 0</int> <int name="QTime"> 3565</int> </lst> <lst name="failure"> <str> org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'impactprint_shard1_replica1': Unable to create core [impactprint_shard1_replica1] Caused by: org.apache.solr.handler.dataimport.DataImportHandler</str> <str> org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'impactprint_shard2_replica1': Unable to create core [impactprint_shard2_replica1] Caused by: org.apache.solr.handler.dataimport.DataImportHandler</str> </lst> </response> Please help!
... View more
01-11-2016
05:00 AM
I am on the following Java / JDK versions : openjdk version "1.8.0_51" OpenJDK Runtime Environment (build 1.8.0_51-b16) OpenJDK 64-Bit Server VM (build 25.51-b03, mixed mode) Do I need to upgrade ? Can you point me to a resource on how to upgrade the Java version? Do I need to upgrade on each node separately ? Thanks !
... View more
- Tags:
- on the
01-05-2016
03:39 AM
I am trying to setup Cloudera Search (Parcel install CDH 5.4.4) I have followed the instructions in the documentation for "Validating the Deployment with the Solr REST API" However, the instruction - java -Durl=http://$SOLRHOST:8983/solr/collection1/update -jar post.jar *.xml generates the following error : Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/solr/util/SimplePostTool : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.apache.solr.util.SimplePostTool. Program will exit. Can anyone please help ! Thanks!
... View more
05-08-2015
07:43 AM
Yes. Thanks to support from Cloudera Live and GoGrid GoGrid advised me to delete and re-create the cluster, which I did. Things are working now. Thanks!!
... View more
05-05-2015
06:00 AM
I have had the exact same issues as many here with GoGrid and Cloudera Live evaluation - Signed up for Cloudera Live evaluation on May 1 2015 - The promised second email hasn't arrived, even now - Wrote to GoGrid support and they've suggested that I should check with Cloudera support regarding the second e-mail, getting started and tutorials. - Managed to re-set my GoGrid account password. On login, I can see 4 machines deployed - One cloudera master and 3 agents. - However, can't ping, http or ssh to any of the IPs listed there Can anyone help? Surely, this most be the most difficult way to evaluate Cloudera Live !! - I do hope someone at Cloudera is reading this. Cheers! Sharat
... View more