我将Spark 1.4.0与Hadoop2.4.0结合使用,并尝试调用addFile方法,其中输入字符串在位置x+1处有一个空格。我在位置x处得到一个错误。有什么建议我做错了吗?java.net.URISyntaxException: Illegal character in path at index x: /some/path/where/position x+1 is a space character at java.net.URI
我必须创建一个web应用程序。首先,我必须使用。我测试了免费的Google搜索API,它每天提供100个请求,但我有一些问题:获得的结果与谷歌的导航不一样,如果我搜索,例如,没有空间的“最好的大学”,它会给我这个错误:
java.io.IOException: Server returned HTTP response code: 400 for URL: https://www.googleapis.com/customsearch/v1?key=XXXX&cx=013036536707430787589:_pqjad5hr1a&q=the best universities