TYPO3-Solr/nutch-typo3-cms

Several issues with installation instructions

Opened this issue · 0 comments

The blog post "Release des Nutch-TYPO3-CMS Plugins 2.3.0" refers in the section "Aufsetzen der solr-ddev-site" to several ddev ssh commands which are missing.
Maybe it's possible to update the blog post so it works also for newbies that are not so deep into Solr and Nutch 😄

I then tried to run the ddev command solr:examples:nutch but that has issues as well:

  • The Nutch plugin 2.3.0 is only available as zip file at GitHub but the script refers to a tar.gz version. => that's fixed already, thx!

  • After manual unpacking and running the script again I end up with this error:

/mnt/ddev_config/commands/web/examples-nutch: line 84: cd: /var/www/html/.ddev/nutch/logs: No such file or directory

For the logs problem I already provided a pull request: TYPO3-Solr/solr-ddev-site#47

  • After fixing this error the next issue is:
Injecting seed URLs
/var/www/html/.ddev/nutch/bin/nutch inject -Dmapreduce.job.reduces=2 -Dmapreduce.reduce.speculative=false -Dmapreduce.map.speculative=false -Dmapreduce.map.output.compress=true shop.dkd.de/crawldb /var/www/html/.ddev/nutch/urls/seed.txt
/var/www/html/.ddev/nutch/bin/nutch: line 184: /usr/lib/jvm/java-11-openjdk-amd64/bin/java: No such file or directory
/var/www/html/.ddev/nutch/bin/nutch: line 333: /usr/lib/jvm/java-11-openjdk-amd64/bin/java: No such file or directory
Error running:
  /var/www/html/.ddev/nutch/bin/nutch inject -Dmapreduce.job.reduces=2 -Dmapreduce.reduce.speculative=false -Dmapreduce.map.speculative=false -Dmapreduce.map.output.compress=true shop.dkd.de/crawldb /var/www/html/.ddev/nutch/urls/seed.txt
Failed with exit value 127.

The reason for the second problem may be that I'm using DDEV on a Apple M2 Pro. There the path is /usr/lib/jvm/java-11-openjdk-arm64 instead of /usr/lib/jvm/java-11-openjdk-amd64
I'll try to come up with a fix for that as well.

When I fix the path, the script works!