Project1-1: Configure and run Heritrix in Ubuntu

Source: Internet
Author: User
1. because it was decided to run Heritrix from the Ubuntu source code, so first install Eclipse: $ sudoapt-getinstalleclipse2. download Heritrix source code from here: 3. unzip: $ tarxzvf/home/xxx/workspace/heritrix-1.14.4-src.tar.gz4. change the folder name to heritrix (not required, which is easy to import to ec

1. Because it is decided to run Heritrix from the Ubuntu source code, install Eclipse first:

$ Sudo apt-get install eclipse

2. Download Heritrix source code from here:

3. decompress:

$ Tar xzvf/home/xxx/workspace/heritrix-1.14.4-src.tar.gz

4. Change the folder name to heritrix (not required, which is easy to import to eclipse ):

$ Mv heritrix-1.14.4 heritrix

5. Open eclipse, New-> Java Project-> Create Project from exsiting source
Ensure that the entered Project Name and Project folder Name are consistent.

6. Go to Run Configurations. [Linux community www.linuxidc.com] and specify the Main class

Org. archive. crawler. Heritrix
Add VM arguments:

-Dheritrix. development-Xmx512m

Add Classpath: Advanced-> Add External Folder and Add src/conf and src/resources to Classpath. Otherwise, two errors will be reported:

Exception in thread "main" java. io. IOException: Failed to load properties file from filesystem or from classpath.
At org. archive. crawler. Heritrix. getPropertiesInputStream (Heritrix. java: 924)
At org. archive. crawler. Heritrix. loadProperties (Heritrix. java: 863)
At org. archive. crawler. Heritrix. containerInitialization (Heritrix. java: 492)
At org. archive. crawler. Heritrix. main (Heritrix. java: 555)
And

10:03:01. 250 severe thread-10 org. archive. util. ArchiveUtils. () TLD list unavailable
Java. lang. NullPointerException
At java. io. Reader. (Unknown Source)
At java. io. InputStreamReader. (Unknown Source)
At org. archive. util. ArchiveUtils. (ArchiveUtils. java: 759)
........
More seriously, the selection item cannot be changed on the Heritrix Modules interface.


7. other things such as setting username and password, adding and running jobs are not described in detail here.

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.