Ejemplo n.º 1
0
  /** @throws Exception If failed. */
  public void testLocalIfNonPrimaryModeAndHadoopFileSystemUriIsNull() throws Exception {
    g1Cfg.setCacheConfiguration(
        concat(dataCaches(1024), metaCaches(), GridCacheConfiguration.class));

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

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

    g1GgfsCfg2.setSecondaryHadoopFileSystemConfigPath("/");

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