-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy from HDFS not working #22
Comments
Can you make the tool work by using the IP address of the namenode rather than the hostname? |
@climbage : No I tired using the tool with IP address but couldn't make it work, any other solution. |
The third image in the issue description of 2015/01/10 does not appear to be the "same problem" as the first image - it is very different. The third image shows a web browser [Firefox] dialog asking which application should be used to open the CSV file. In fact, such a web browser dialog indicates a successful download of the requested file. This may not provide entirely relevant information, as the screenshot appears to be a web browser running in the guest OS in the VM, and no screen shot is provided of a browser on the host OS trying to access the file through that URL. |
@mayur7789 If you did not figure this out yet, it looks like you are using "quickstart" as an input to the GP tool from your first screenshot. It is likely that your host machine has no idea where this location of "quickstart" is located unless you actually put quick in your Windows HOSTS file. As Randall mentions, you should try accessing the same URL in your 3rd screenshot from within a web browser on your host machine instead of from within the Cloudera VM. This test it to make sure webhdfs is accessible from the host machine (the same one running the GP tool from within ArcMap) to the Cloudera VM. If the IP URL that is shown in your third screenshot works in your host machine web browser, then trying switching your input param. within your GP tool in ArcMap from "quickstart" to just the IPv4 address which you used in the URL webhdfs test. |
I am having the same issue with the out the box VM provided via https://github.com/Esri/gis-tools-for-hadoop/wiki/GIS-Tools-for-Hadoop-for-Beginners . I have followed all the instructions however I hit the same error whilst trying to run the Copy to HDFS script. I have a feeling that as per @GISDev01 the host machine has no way of desiphering what sandbox or sandbox.hortonworks.com actually is, but i'm not sure how to make that happen. If you have either @mayur7789 , @randallwhitman or @climbage have any ideas that would be greatly appreciated as I'm supposed to be demoing it soon. |
@JamesMilnerUK Can you change |
Wrong James... |
@climbage thanks! That worked (woops, what a simple mistake). However now I'm faced with a new error... "Unexpected error : No JSON object could be decoded". Perhaps something funky going on with the actual created file? |
@JamesMilnerUK Could be. Can you browse to the file in HDFS? |
@climbage for sure; this is what I see. |
@JamesMilnerUK is there a link on that page to browse the file system? |
@climbage yeah, so I can browse to the file, however when I try and open the agg_samp I get "file not found" in my web browser. I managed to download the file using HDP 2.2 which is strange: No obvious malformation in the JSON but theres so much of it it's kind of hard to tell. |
Hmm, and you created dataset through the hive sample? |
@climbage Yeah, I'm following the workflow as described on https://github.com/Esri/gis-tools-for-hadoop/wiki/Getting-the-results-of-a-Hive-query-into-ArcGIS . Everything appears to run correctly: But I get the JSON error now whilst running the Copy from HDFS tool Edit: Hang on, I do get this error "FAILED: SemanticException [Error 10004]: Line 2:7 Invalid table alias or column reference 'event_date': (possible column names are: earthquake_date, latitude, longitude, depth, mag " which I have a feeling relates to issue #24 ? If i change it to earthquake_date it runs it runs error free in hive but i feel the problem may run deeper. |
How about |
@climbage if I replace event_date with earthquake_date it comes back with "OK 12948". It also seems it's not giving the finished file as JSON. |
When are you replacing it? |
Replacing event_date (as described in tutorial: https://github.com/Esri/gis-tools-for-hadoop/wiki/Getting-the-results-of-a-Hive-query-into-ArcGIS) with earthsquake_date because otherwise it fails. CREATE TABLE IF NOT EXISTS earthquakes (earthquake_date STRING, latitude DOUBLE, longitude DOUBLE, magnitude DOUBLE) CREATE TABLE earthquakes_new(earthquake_date STRING, latitude DOUBLE, longitude DOUBLE, magnitude DOUBLE); Thank you for your help by the way. |
Interesting. So what if you re-run the GP tool now? |
The hive commands pass per screenshot provided above. The GP tool gives: Unexpected error : No JSON object could be decoded Interestingly if I copy the JSON to my desktop and run the second GP task (JSON to Feature Layer) I get this: I'm not sure if this is how it's supposed to look as no example is provided, but I'm assuming that it is correct (feature table looks OK; visualises OK). |
Well, that is how it's supposed to look so you're at least getting the right results. Actually, I think I might know why the copy from HDFS too is not working. Instead of,
use
If you don't root the path it will assume it's relative to your home directory |
Thanks for the suggestion. I have attempted it and unforunately still getting the same error: (Unexpected error : [Errno 11004] getaddrinfo failed). Changing it back to no slash gives me the JSON error which is more promising (so to speak!). Also, just out of interest what is this query doing? Aggregating the number of earthquakes in a year into square polygons? |
Can you post the traceback for the error this time? |
I also tried changing
to
With still the same error (Hive didn't fail however). |
It still looks like you don't have a |
@climbage if I put a / I get the old error:
|
That's what I'm looking for. This is slightly different in that now you're getting an error during redirection to a datanode. Try this in the browser and see what you get.
|
Thanks again. Unforunately I get "This web page is not available" . I'm redirected to:
|
@JamesMilnerUK Is sandbox.hortonworks.com in your Windows hosts file? |
Now we're getting somewhere. @GISDev01 has the solution. @smambrose can we put this in the tutorials? |
I added Interestingly changing sandbox.hortonworks.com to localhost in the URL:
downloads the JSON |
I believe it should be...
|
The IP in your Windows OS hosts file is going to be the IP of your Hortonworks VM. The IP of the Hortonworks VM is highly dependent on your VM settings. In most cases with both VMWare Player and also VirtualBox on a host Windows OS with default options for the virtual NIC, Mike's answer above is correct since the VM shares the IP of the host (by default). |
Excellent! |
Also feel free to use any of the screenshots in the documentation if they are useful. Might be good to have what the finished data should look like mapped :) |
Awesome! We'll definitely want to work some of this into the documentation. |
@JamesMilnerUK Just wondering, are you using VMWare Player or VirtualBox? |
@GISDev01 I was using VirtualBox. I was following the GIS Tools for Hadoop for Beginners |
The above has been added to the documentation (the wikis). Thanks everyone! |
I met the same problem as you@JamesMilnerUK, and I follow your step, but the same error, could you help me ? Thanks a lot! |
Please help me , @JamesMilnerUK ,thanks a lot ! |
|
@ymzzx Can you get to the name node web UI through your browser? |
@climbage Here is the details. I use vmware workstation ,there are three node in my vmware . of course ,one namenode ,two datanodes. I add the namenode and its IP in my host machine's host file (192.168.152.113 hadoop1), my host machine is win7. I can get to the namenode through http://192.168.152.113:50070 ,but I can not browse the filesystem in my hostmachine's browser.As the image shows,when I point the Browse the filesystem , there is error. |
and another question, why the numRows is 0,as the image shows |
maybe there are so many problems , thanks a lot ! @climbage |
I am too facing the same problem. I am trying to copy from HDFS where HDFS server is on remote system. All the steps in turorial https://github.com/Esri/gis-tools-for-hadoop/wiki/Getting-the-results-of-a-Hive-query-into-ArcGIS has been followed as mentioned. Completed script CopyFromHDFS... |
OK,just copy your result as an usual way, without using the tools,you will find a nice end.------------------ Original ------------------ I am too facing the same problem. I am trying to copy from HDFS where HDFS server is on remote system. All the steps in turorial https://github.com/Esri/gis-tools-for-hadoop/wiki/Getting-the-results-of-a-Hive-query-into-ArcGIS has been followed as mentioned. Completed script CopyFromHDFS... — |
I did try what you are suggesting using following url: |
@amitabh74 that is actually a different error than the original issue here. Please open a new issue, as this one can be closed. We want to avoid the common problem of github issues turning into forum threads. I can help you troubleshoot in a new issue. |
@ymzzx @amitabh74 I met the same problem just as you did, but finally I figure out a solution. Hope that may help you. First of all, the IP of my VM is 192.168.233.130: Change my OS host file to: Then, fill the "HDFS host name" box with "sandbox.hortonworks.com" in "Copy From HDFS" tool: This solution is pretty different, however it works. And I was inspired by @GISDev01 @JamesMilnerUK But I am still wondering the reason why the error appears, and why I cannot use "localhost" as "HDFS server name" while my host file has already edited as BTW, I'm using VMware and my physical machine's OS is Windows 10. And the VM shares the IP of the host. |
Has anyone tried connecting to a Kerberized cluster from ArcMap to make this work? What was your workaround if so? I would like to just copy the table to a my local desktop and then import it from there to turn into a FEATURE but my trouble is exporting it. |
@ymzzx @amitabh74 @Cess-Zhu I met one of the same questions Error 10061 Have you solved it?Please help me.Thank you very much. |
Here is the error details
![model](https://cloud.githubusercontent.com/assets/10476589/5691945/f8da8b2c-9904-11e4-80b9-ffeb888c401e.PNG)
I have Windows 7 as Host machine and Cloudera VM (Linux) as guest machine. Arcmap is installed on Host machine please find the screen shot below while accessing.
![clouderavmnamenode](https://cloud.githubusercontent.com/assets/10476589/5691953/4634dc6a-9905-11e4-86f6-d4978fa4d81e.PNG)
http://quickstart.cloudera:50070/dfshealth.html#tab-overview (192.168.126.128:50070/) through browser on the same machine as ArcMap.
Also tried solving the problem with the help of "Copy to HDFS not working #16" But still I am facing the same problem.
![clouderavm ss](https://cloud.githubusercontent.com/assets/10476589/5691958/83d817b2-9905-11e4-858a-154970d304b3.PNG)
Please point me to right direction.
The text was updated successfully, but these errors were encountered: