My main issue is I'm unable to index lots of file attachments (over 2000).
When I run the index in the Drupal GUI it will spin for a while then return nothing. If i set the batch size to 1 it will index 1 at a time.
When I figured out I can index through the CLI using drush I did that except every time it does an index on an item it returns this error. The index works great for everything except the attached files. Any ideas?
My drush command is this..
drush sapi-i 4 500
Error:
Exception in thread "main" java.net.UnknownHostException: default
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1296)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1290)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:944)
at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:395)
at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:395)
at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:101)
Caused by: java.net.UnknownHostException: default
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052)
at java.net.URLConnection.getContentType(URLConnection.java:485)
at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:380)
... 2 more
--Corey
Comments
Comment #1
ibakayoko commentedSet $base_url in settings.php to fix this issue.
Comment #1.0
ibakayoko commentedadded drush command
Comment #2
zserno commentedSolution in #1 just works, thanks man!
Comment #3
judapriest