You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ayla Khan (JIRA)" <ji...@apache.org> on 2019/08/12 03:59:00 UTC

[jira] [Created] (AIRFLOW-5164) MongoHook fails to parse MongoDB replica set URIs

Ayla Khan created AIRFLOW-5164:
----------------------------------

             Summary: MongoHook fails to parse MongoDB replica set URIs
                 Key: AIRFLOW-5164
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5164
             Project: Apache Airflow
          Issue Type: Bug
          Components: hooks
    Affects Versions: 1.10.4
            Reporter: Ayla Khan
         Attachments: airflow_mongo_test.ipynb

MongoHook fails to parse MongoDB's [replica set connection string URIs|https://docs.mongodb.com/manual/reference/connection-string/]. For example, trying to create a MongoHook with the example from MongoDB's replica set documentation ({{mongodb://mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/admin?replicaSet=myRepl}}) raises the following error:

{{ValueError: invalid literal for int() with base 10: '27017,mongodb1.example.com:27017,mongodb2.example.com:27017'}}

 

A notebook is attached with the code that raises the error.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)