Environment for Big Data practice (1)

Source: Internet
Author: User
Tags apache solr cassandra solr

Now I am studying big data. Recently I am lucky enough to have a little access to big data, Cassandra & solr. Today we take a look at the establishment of the Solr environment, first go to the apache solr official website to download the latest Solr-4.3.0 and apache tomcat official website tomcat-7.0.40. The most important thing is jdk1.7.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122231028-0.jpg "title =" QQ20130609222837.jpg "/>


Step 1: Configure environment variables. Your system is win7 and 32-bit. First open the following interface

650) this. width = 650; "src =" http://img1.51cto.com/attachment/201306/223207112.jpg "title =" QQ20130609223113.jpg "/>

Click environment variables to open the environment variable setting interface. Configure the JRE directory first, as shown below.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122232147-2.jpg "title =" QQ20130609223247.jpg "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/212223F16-3.jpg "title =" QQ20130609223410.jpg "/>

Then configure the Path, as shown below. Enter (.; % JAVA_HOME \ bin;) at the beginning, that is, the bin directory of JRE.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122236163-4.jpg "title =" QQ20130609223524.jpg "/>

OK. The JDK environment variables have been configured in the preceding steps. Start tomcat and enter the bin directory under the tomcat directory. Double-click startup. bat. When tomcat is started, check whether there is any error output. If not, it indicates that tomcat is successfully installed.

Enter http: // localhost: 8080 in the browser, as shown in the following figure. The tomcat management interface is displayed.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122236439-5.jpg "title =" QQ20130609224130.jpg "/>

Step 2: Configure Solr.

Copy the dist \ solr-4.3.0.war file under the solr directory to the webapps directory of tomcat

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/21222340F-6.jpg "title =" QQ20130609224439.jpg "/> 650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/212223FI-7.jpg "title =" QQ20130609224636.jpg "/>

Start tomcat and pressurize the solr-4.30.war, as shown in. After decompression, we stop tomcat. Create a folder named Solr under the solr-4.3.0 directory, and copy the files under example \ solr under the solr directory to the solr-4.3.0 \ Solr, as shown in.

650) this. width = 650; "src =" http://img1.51cto.com/attachment/201306/225550537.jpg "title =" QQ20130609225414.jpg "/>

Copy these files to the webapps \ solr-4.3.0 \ Solr under tomcat

650) this. width = 650; "src =" http://img1.51cto.com/attachment/201306/225747992.jpg "title =" QQ20130609225713.jpg "/>

In the past, the default folder name is not MyTest. You can change it to MyTest, but you need to modify solr. the Cores node in xml is as follows. Here, the core name can be used casually, and the instanceDir must be changed to the solr directory under webapps.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122235555-10.jpg "title =" QQ20130609225923.jpg "/>

OK, here you also need to copy all jar packages under solr-4.3.0 \ example \ lib \ ext to the lib directory of tomcat

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/212223MH-11.jpg "title =" QQ20130609230141.jpg "/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122231540-12.jpg "title =" QQ20130609230335.jpg "/>

OK. After the preceding steps are completed, we will create a file named solr. xml in the conf \ Catalina \ localhost directory of tomcat. The content is as follows:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122235C9-13.jpg "title =" QQ20130609230448.jpg "/>


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122232B4-14.jpg "title =" QQ20130609230602.jpg "/>

OK. All the above configurations are available. At this time, we enter http: // localhost: 8080/solr in the browser. The solr management interface is displayed as follows:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122234263-15.jpg "title =" QQ20130609230909.jpg "/>

In the drop-down list of Core Selector, we can see the created instance MyTest.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/2122236326-16.jpg "title =" QQ20130609231027.jpg "/>

After the selection, we can manage the instance, query, view schema, and so on. Click query to query. The default condition is *: *, which means to query all data in solr.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/212223KY-17.jpg "title =" QQ20130609231135.jpg "/>

The xml format of response has been presented to us on the right. Now, let's talk about how to build the cassandra environment.


This article is from the "Microsoft technology" blog, please be sure to keep this source http://leelei.blog.51cto.com/856755/1219779

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.