Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-29-2016 08:34 PM
attempts to upload a file from ambari fails by generating an invalid target file name. it creates a target filename (hdfs) by removing all of the path delimiters from the source file name, resulting in a ridiculously long file name that additionally contains "c:". I don't see any way of controlling this. running it all on windows. all I do is browse for the local file and then upload.
exception:
500
Pathname /tmp/maria_dev/data/C:UsersXXXXXDownloadsHortonworksGeolocationgeolocation.csv from /tmp/maria_dev/data/C:UsersXXXXXDownloadsHortonworksGeolocationgeolocation.csv is not a valid DFS filename.
java.lang.IllegalArgumentException: Pathname /tmp/maria_dev/data/C:UsersklyborDownloadsHortonworksGeolocationgeolocation.csv from /tmp/maria_dev/data/C:UsersklyborDownloadsHortonworksGeolocationgeolocation.csv is not a valid DFS filename
Created 04-30-2016 03:09 PM
try scp
scp -P 2222 Downloads/HortonworksGeolocationgeolocation.csv root@<hadoop node>:/tmp/maria_dev/data/
Created 04-30-2016 03:09 PM
try scp
scp -P 2222 Downloads/HortonworksGeolocationgeolocation.csv root@<hadoop node>:/tmp/maria_dev/data/
Created 04-30-2016 03:10 PM
if it is sandbox, the above command will look like:
scp -P 2222 Downloads/HortonworksGeolocationgeolocation.csv [email protected]:/tmp/maria_dev/data/
Created 04-30-2016 11:19 PM
thanks @hduraiswamy
used filezilla to do the uploads. would be nice it this ambari feature worked because it is really convenient.
Created 04-30-2016 11:48 PM
I know the problem. It is an IE 11 feature that I encountered and dealt with for one of my own apps.
I can do the upload with Chrome. IE 11 passes the full local file pathname at times (depends upon user browser options) . Ambari needs to strip off the path prefix when forming the server filename.
Created 05-01-2016 02:25 AM
@michael klybor - good point.. It actually makes sense to post that to the Ambari forum as a suggestion..
Created 01-30-2019 02:22 AM
have the same issue using Edge browser