Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7186

Missing storage.json REST endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.16.0
    • 1.16.0
    • Web Server

    Description

      Steps:
      1. Open page: http://<server>:8047/storage.json

      Expected result:
      storage.json is opened:

      [ {
        "name" : "cp",
        "config" : {
          "type" : "file",
          "connection" : "classpath:///",
          "config" : null,
          "workspaces" : { },
          "formats" : {
            "csv" : {
              "type" : "text",
              "extensions" : [ "csv" ],
              "delimiter" : ","
            },
            "tsv" : {
              "type" : "text",
              "extensions" : [ "tsv" ],
              "delimiter" : "\t"
            },
            "json" : {
              "type" : "json",
              "extensions" : [ "json" ]
            },
            "parquet" : {
              "type" : "parquet"
            },
            "avro" : {
              "type" : "avro"
            },
            "csvh" : {
              "type" : "text",
              "extensions" : [ "csvh" ],
              "extractHeader" : true,
              "delimiter" : ","
            },
            "image" : {
              "type" : "image",
              "extensions" : [ "jpg", "jpeg", "jpe", "tif", "tiff", "dng", "psd", "png", "bmp", "gif", "ico", "pcx", "wav", "wave", "avi", "webp", "mov", "mp4", "m4a", "m4p", "m4b", "m4r", "m4v", "3gp", "3g2", "eps", "epsf", "epsi", "ai", "arw", "crw", "cr2", "nef", "orf", "raf", "rw2", "rwl", "srw", "x3f" ]
            }
          },
          "enabled" : true
        }
      }, {
        "name" : "dfs",
        "config" : {
          "type" : "file",
          "connection" : "file:///",
          "config" : null,
          "workspaces" : {
            "tmp" : {
              "location" : "/tmp",
              "writable" : true,
              "defaultInputFormat" : null,
              "allowAccessOutsideWorkspace" : false
            },
            "root" : {
              "location" : "/",
              "writable" : false,
              "defaultInputFormat" : null,
              "allowAccessOutsideWorkspace" : false
            }
          },
          "formats" : {
            "psv" : {
              "type" : "text",
              "extensions" : [ "tbl" ],
              "delimiter" : "|"
            },
            "csv" : {
              "type" : "text",
              "extensions" : [ "csv" ],
              "delimiter" : ","
            },
            "tsv" : {
              "type" : "text",
              "extensions" : [ "tsv" ],
              "delimiter" : "\t"
            },
            "httpd" : {
              "type" : "httpd",
              "logFormat" : "%h %t \"%r\" %>s %b \"%{Referer}i\""
            },
            "parquet" : {
              "type" : "parquet"
            },
            "json" : {
              "type" : "json",
              "extensions" : [ "json" ]
            },
            "pcap" : {
              "type" : "pcap"
            },
            "pcapng" : {
              "type" : "pcapng",
              "extensions" : [ "pcapng" ]
            },
            "avro" : {
              "type" : "avro"
            },
            "sequencefile" : {
              "type" : "sequencefile",
              "extensions" : [ "seq" ]
            },
            "csvh" : {
              "type" : "text",
              "extensions" : [ "csvh" ],
              "extractHeader" : true,
              "delimiter" : ","
            },
            "image" : {
              "type" : "image",
              "extensions" : [ "jpg", "jpeg", "jpe", "tif", "tiff", "dng", "psd", "png", "bmp", "gif", "ico", "pcx", "wav", "wave", "avi", "webp", "mov", "mp4", "m4a", "m4p", "m4b", "m4r", "m4v", "3gp", "3g2", "eps", "epsf", "epsi", "ai", "arw", "crw", "cr2", "nef", "orf", "raf", "rw2", "rwl", "srw", "x3f" ]
            }
          },
          "enabled" : true
        }
      }, {
        "name" : "hbase",
        "config" : {
          "type" : "hbase",
          "config" : {
            "hbase.zookeeper.quorum" : "localhost",
            "hbase.zookeeper.property.clientPort" : "2181"
          },
          "size.calculator.enabled" : false,
          "enabled" : false
        }
      }, {
        "name" : "hive",
        "config" : {
          "type" : "hive",
          "configProps" : {
            "hive.metastore.uris" : "",
            "javax.jdo.option.ConnectionURL" : "jdbc:derby:;databaseName=../sample-data/drill_hive_db;create=true",
            "hive.metastore.warehouse.dir" : "/tmp/drill_hive_wh",
            "fs.default.name" : "file:///",
            "hive.metastore.sasl.enabled" : "false",
            "hive.metastore.schema.verification" : "false",
            "datanucleus.schema.autoCreateAll" : "true"
          },
          "enabled" : false
        }
      }, {
        "name" : "kafka",
        "config" : {
          "type" : "kafka",
          "kafkaConsumerProps" : {
            "bootstrap.servers" : "localhost:9092",
            "group.id" : "drill-consumer"
          },
          "enabled" : false
        }
      }, {
        "name" : "kudu",
        "config" : {
          "type" : "kudu",
          "masterAddresses" : "1.2.3.4",
          "enabled" : false
        }
      }, {
        "name" : "mongo",
        "config" : {
          "type" : "mongo",
          "connection" : "mongodb://localhost:27017/",
          "enabled" : false
        }
      }, {
        "name" : "opentsdb",
        "config" : {
          "type" : "openTSDB",
          "connection" : "http://localhost:10000",
          "enabled" : false
        }
      }, {
        "name" : "s3",
        "config" : {
          "type" : "file",
          "connection" : "s3a://my.bucket.location.com",
          "config" : {
            "fs.s3a.access.key" : "ID",
            "fs.s3a.secret.key" : "SECRET"
          },
          "workspaces" : {
            "tmp" : {
              "location" : "/tmp",
              "writable" : true,
              "defaultInputFormat" : null,
              "allowAccessOutsideWorkspace" : false
            },
            "root" : {
              "location" : "/",
              "writable" : false,
              "defaultInputFormat" : null,
              "allowAccessOutsideWorkspace" : false
            }
          },
          "formats" : {
            "psv" : {
              "type" : "text",
              "extensions" : [ "tbl" ],
              "delimiter" : "|"
            },
            "csv" : {
              "type" : "text",
              "extensions" : [ "csv" ],
              "delimiter" : ","
            },
            "tsv" : {
              "type" : "text",
              "extensions" : [ "tsv" ],
              "delimiter" : "\t"
            },
            "parquet" : {
              "type" : "parquet"
            },
            "json" : {
              "type" : "json",
              "extensions" : [ "json" ]
            },
            "avro" : {
              "type" : "avro"
            },
            "sequencefile" : {
              "type" : "sequencefile",
              "extensions" : [ "seq" ]
            },
            "csvh" : {
              "type" : "text",
              "extensions" : [ "csvh" ],
              "extractHeader" : true,
              "delimiter" : ","
            }
          },
          "enabled" : false
        }
      } ]
      

      Actual result:

      {
        "errorMessage" : "HTTP 404 Not Found"
      }
      

      Note: Works fine for individual plugin pages, like: /storage/dfs.json

      This is regression after DRILL-6562.

      Attachments

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              angozhiy Anton Gozhiy
              Vitalii Diravka Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: