Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ddfs chunk data:bigtxt bigfile.txt -> Invalid tag (403) #293

Closed
Dieterbe opened this Issue Feb 1, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Dieterbe commented Feb 1, 2012

Hi, when I follow the tutorial @ http://discoproject.org/doc/start/tutorial.html
(using latest code from git)
I get the following error when trying to put bigfile.txt chunked on the DDFS, when running the command on the master node.

dplaetin@n-0:~/disco$ bin/ddfs chunk data:bigtxt bigfile.txt
Unable to access resource (http://n-0.map-reduce2.search.wall2.test:8989/ddfs/tag/bigfile.txt): Invalid tag (403)

FWIW (just to show the server can be connected to, on my network at least):


dplaetin@n-0:~/disco$ telnet n-0.map-reduce2.search.wall2.test 8989
Trying 10.2.1.97...
Connected to n144-20a.wall2.test.
Escape character is '^]'.
Host n-0.map-reduce2.search.wall2.test
GET / HTTP/1.1

Connection closed by foreign host.

thanks!

Dieterbe commented Feb 1, 2012

though this works, so the issue comes down to: why the weird error about an invalid tag?

dplaetin@n-0:~/disco$ bin/ddfs chunk data:bigtxt ./bigfile.txt
created: disco://localhost/ddfs/vol0/blob/ad/bigfile_txt-0$530-1bcc5-203f7

This is sortof documented @ http://discoproject.org/doc/howto/chunk.html
but it's weird nonetheless.
According to:

$ bin/ddfs -h | grep chunk
    ddfs chunk tag [url ...]

only 1 tag can be specified anyway, so either update the above help message (and extend the help message to say "using the following tags") or change the code to interpret the thing after the tag as file, without requiring ./ IMHO.

@pooya pooya pushed a commit to pooya/disco that referenced this issue Jun 6, 2014

Shayan Pooya ddfs chunk: add a notes to the help message of ddfs chunk.
The help message describes usage of ./ for local files and the use of - for
chunking from stdin.
This closes issue #293.
86987b8
Owner

pooya commented Jun 6, 2014

Commit 86987b8 adds a help message about this issue. Thanks.

@pooya pooya closed this Jun 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment