Grokbase Groups Pig dev February 2013
FAQ
Russell Jurney created PIG-3165:
-----------------------------------

Summary: sh command cannot run mongo client
Key: PIG-3165
URL: https://issues.apache.org/jira/browse/PIG-3165
Project: Pig
Issue Type: Bug
Components: grunt, tools
Affects Versions: 0.11
Reporter: Russell Jurney
Assignee: Russell Jurney
Priority: Critical
Fix For: 0.12


One often needs to drop an old MongoDB store when replacing it. Ex:

store answer into 'mongodb://localhost/agile_data.hourly_from_reply_probs' using MongoStorage();

Before doing that you would likely want to run a mongo command from bash from grunt, to drop it:

sh mongo --eval 'db.hourly_from_reply_probs.drop();'

However, in this case grunt acts as though the command never returns. Crap!


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Russell Jurney (JIRA) at Feb 6, 2013 at 5:57 am
    [ https://issues.apache.org/jira/browse/PIG-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572203#comment-13572203 ]

    Russell Jurney commented on PIG-3165:
    -------------------------------------

    See also https://jira.mongodb.org/browse/HADOOP-60
    sh command cannot run mongo client
    ----------------------------------

    Key: PIG-3165
    URL: https://issues.apache.org/jira/browse/PIG-3165
    Project: Pig
    Issue Type: Bug
    Components: grunt, tools
    Affects Versions: 0.11
    Reporter: Russell Jurney
    Assignee: Russell Jurney
    Priority: Critical
    Fix For: 0.12


    One often needs to drop an old MongoDB store when replacing it. Ex:
    store answer into 'mongodb://localhost/agile_data.hourly_from_reply_probs' using MongoStorage();
    Before doing that you would likely want to run a mongo command from bash from grunt, to drop it:
    sh mongo --eval 'db.hourly_from_reply_probs.drop();'
    However, in this case grunt acts as though the command never returns. Crap!
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedFeb 6, '13 at 5:55a
activeFeb 6, '13 at 5:57a
posts2
users1
websitepig.apache.org

1 user in discussion

Russell Jurney (JIRA): 2 posts

People

Translate

site design / logo © 2021 Grokbase