Beispiel #1
0
  /** @throws Exception If failed. */
  public void testLocalIfNonPrimaryModeAndHadoopFileSystemConfigPathIsNull() throws Exception {
    g1Cfg.setCacheConfiguration(
        concat(dataCaches(1024), metaCaches(), GridCacheConfiguration.class));

    g1GgfsCfg2.setDefaultMode(PROXY);
    g1GgfsCfg2.setSecondaryHadoopFileSystemUri("/");

    checkGridStartFails(
        g1Cfg, "secondaryHadoopFileSystemConfigPath cannot be null when mode is SECONDARY", true);
  }
Beispiel #2
0
  /** @throws Exception If failed. */
  public void testLocalIfHadoopFileSystemConfigPathIsNullAndUriIsNot() throws Exception {
    g1Cfg.setCacheConfiguration(
        concat(dataCaches(1024), metaCaches(), GridCacheConfiguration.class));

    g1GgfsCfg2.setSecondaryHadoopFileSystemUri("/");

    checkGridStartFails(
        g1Cfg,
        "secondaryHadoopFileSystemConfigPath cannot be null when secondaryHadoopFileSystemUri is set",
        true);
  }