Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3165

sh command cannot run mongo client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.11
    • 0.18.0
    • grunt, tools
    • None

    Description

      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!

      Attachments

        Activity

          People

            russell.jurney Russell Jurney
            russell.jurney Russell Jurney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: