When following Vespa's tutorial about blog recommendation I ran into an issue connecting to the local Vespa endpoint when calling Pig from the command line with ENDPOINT=$(hostname):8080
:
ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Pig script failed to parse:
<file tutorial_feed_content_and_tensor_vespa.pig, line 131, column 0> pig script failed to validate:
java.lang.IllegalArgumentException:
java.net.URISyntaxException: Relative path in absolute URI: localhost:8080
This is a bit frustrating for people unfamiliar with Pig following the tutorial step-by-step.
The accepted answer works to get the correct port set. Problem with Handshake flying-otter.local:8080
is still an issue but is probably unrelated.
edited to add, if it's of any use: The Problem with Handshake
seemed to occur when the application was not activated (i.e., deployed but forgot to do the next step).