{"record":{"id":"0c2b21ed0126cc62","repo":"apache/hadoop","slug":"viewfs-cannot-initialize-empty-mount-table-in-co","errorCode":null,"errorMessage":"ViewFs: Cannot initialize: Empty Mount table in config for {scheme}://{mountTableName}/","messagePattern":"ViewFs: Cannot initialize: Empty Mount table in config for (.+?)://(.+?)/","errorType":"validation","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java","lineNumber":758,"sourceCode":"          }\n          fallbackLink = new INodeLink<T>(mountTableName, ugi,\n              initAndGetTargetFs(), le.getTarget());\n          continue;\n        case REGEX:\n          addRegexMountEntry(le);\n          continue;\n        default:\n          createLink(le.getSrc(), le.getTarget(), le.getLinkType(),\n              le.getSettings(), le.getUgi(), le.getConfig());\n        }\n      }\n      rootFallbackLink = fallbackLink;\n      getRootDir().addFallbackLink(rootFallbackLink);\n    }\n\n    if (!gotMountTableEntry) {\n      if (!initingUriAsFallbackOnNoMounts) {\n        throw new IOException(new StringBuilder(\n            \"ViewFs: Cannot initialize: Empty Mount table in config for \")\n            .append(theUri.getScheme()).append(\"://\").append(mountTableName)\n            .append(\"/\").toString());\n      }\n      FileSystem.LOG\n          .info(\"Empty mount table detected for {} and considering itself \"\n              + \"as a linkFallback.\", theUri);\n      rootFallbackLink = new INodeLink<T>(mountTableName, ugi,\n          initAndGetTargetFs(), theUri.toString());\n      getRootDir().addFallbackLink(rootFallbackLink);\n    }\n  }\n\n  /**\n   * Get collection of linkEntry. Sort mount point based on alphabetical order of the src paths.\n   * The purpose is to group nested paths(shortest path always comes first) during INodeTree creation.\n   * E.g. /foo is nested with /foo/bar so an INodeDirLink will be created at /foo.\n   * @param linkEntries input linkEntries","sourceCodeStart":740,"sourceCodeEnd":776,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java#L740-L776","documentation":"Error \"ViewFs: Cannot initialize: Empty Mount table in config for {scheme}://{mountTableName}/\" thrown in apache/hadoop.","triggerScenarios":"Thrown during ViewFs initialization when the configuration for the given scheme/mount table name contains no mount entries.","commonSituations":"See trigger scenarios.","solutions":["Define at least one mount point (link, linkMergeSlash, or linkFallback) for the mount table in the configuration.","Check fs.viewfs.mounttable.<mountTableName>.link* properties."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}