DataX icon indicating copy to clipboard operation
DataX copied to clipboard

读取Mongodb视图错误Namespace Original_Data.gy_ypgwml_View is a view, not a collection

Open 2695115374 opened this issue 1 year ago • 1 comments

2025-01-03 10:12:00 [AnalysisStatistics.analysisStatisticsLog-53] com.mongodb.MongoCommandException: Command failed with error 166: 'Namespace Original_Data.gy_ypgwml_View is a view, not a collection' on server 192.168.33.7:27017. The full response is { "ok" : 0.0, "errmsg" : "Namespace Original_Data.gy_ypgwml_View is a view, not a collection", "code" : 166, "codeName" : "CommandNotSupportedOnView" }

{
        "reader": {
          "name": "mongodbreader",
          "parameter": {
            "address": [
              "192.168.33.7:27017"
            ],
            "userName": "original_data",
            "userPassword": "iDPKq_8RwceJeqjqpfhb",
            "dbName": "Original_Data",
            "collectionName": "gy_ypgwml_View",
            "query": {},
            "column": [
              {
                "name": "剂型",
                "type": "String"
              }
            ]
          }
        }

2695115374 avatar Jan 03 '25 02:01 2695115374

你应该写的是mongDb的集合collection

TobeTangMonk avatar Jan 20 '25 10:01 TobeTangMonk