You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/03/24 10:13:52 UTC

[GitHub] [flink] hehuiyuan edited a comment on pull request #15274: [FLINK-21829][Hive Connect]Fix to throw exception when custom hadoop conf path does not exist

hehuiyuan edited a comment on pull request #15274:
URL: https://github.com/apache/flink/pull/15274#issuecomment-805673421


   > HiveCatalogFactoryTest
   
   Hi @lirui-apache  , is it ok?
   `
   
       @Test
       public void testCreateHiveCatalogWithIllegalHadoopConfDir() throws IOException {
           final String catalogName = "mycatalog";
   
           final String illegalHadoopConfDir = " " + tempFolder.newFolder().getAbsolutePath();
   
           try {
               final HiveCatalog hiveCatalog =
                       HiveTestUtils.createHiveCatalog(
                               catalogName, CONF_DIR.getPath(), illegalHadoopConfDir, null);
           } catch (Exception e) {
               assertEquals(e.getClass(), CatalogException.class);
           }
       }
   `


-- 
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.

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