heziyi399 opened a new issue, #4728:
URL: https://github.com/apache/gravitino/issues/4728

   ### Version
   
   0.5.1
   
   ### Describe what's wrong
   
   now I want to create a schema for fileset types,The code is as follows:
   `     
   @PostMapping("/addCatalogAndSchema")
       public void addCatalogAndSchema(@RequestBody FilesetRequest request) {  
     NameIdentifier nameIdentifier = NameIdentifier.of("tbds", 
request.getName());
           Map<String, String> properties =
                   ImmutableMap.<String, String>builder()
                           .put("location", 
hdfsSiteMap.getOrDefault("fs.defaultFS", ""))
                           .build();
    Catalog catalog =
                   
GravitinoClient.builder(getGravitinoUrl()).withMetalake(metaLakeName).build()
                           .createCatalog(
                                   nameIdentifier,
                                   Catalog.Type.FILESET,
                                   "hadoop",
                                   request.getName(),
                                   properties);
           SupportsSchemas supportsSchemas = catalog.asSchemas();
           Map<String, String> schemaProperties =
                   ImmutableMap.<String, String>builder()
                           .put("location", 
hdfsSiteMap.getOrDefault("fs.defaultFS", ""))
                           .build();
           Schema schema1 =
                   supportsSchemas.createSchema(
                           NameIdentifier.of("tbds", request.getName(), 
request.getSchemaName()),
                           "This is a schema",
                           schemaProperties);
   }
   `
   
   ### Error message and/or stacktrace
   
   [Exception] ErrorCode -> FailedOperation, RequestURI -> 
/datamanager/apiv3/addCatalogAndSchema,errorMsg->Failed to operate schema(s) 
[schema] operation [CREATE] under catalog [filesetCatalog], reason [Relative 
path in absolute URI: hdfs://HDFS78000026schema]
   
   ### How to reproduce
   
   0.5.1
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to