diff --git a/geomesa-fs/geomesa-fs-datastore/src/main/scala/org/locationtech/geomesa/fs/data/FileSystemDataStore.scala b/geomesa-fs/geomesa-fs-datastore/src/main/scala/org/locationtech/geomesa/fs/data/FileSystemDataStore.scala index 616bb7dc27a2..3a4dea6519c4 100644 --- a/geomesa-fs/geomesa-fs-datastore/src/main/scala/org/locationtech/geomesa/fs/data/FileSystemDataStore.scala +++ b/geomesa-fs/geomesa-fs-datastore/src/main/scala/org/locationtech/geomesa/fs/data/FileSystemDataStore.scala @@ -10,7 +10,7 @@ package org.locationtech.geomesa.fs.data import com.typesafe.scalalogging.LazyLogging import org.apache.hadoop.conf.Configuration -import org.apache.hadoop.fs.{FileSystem, Path} +import org.apache.hadoop.fs.{FileContext, FileSystem, Path} import org.geotools.api.data.Query import org.geotools.api.feature.`type`.Name import org.geotools.api.feature.simple.SimpleFeatureType @@ -49,6 +49,18 @@ class FileSystemDataStore( namespace: Option[String] ) extends ContentDataStore with HasGeoMesaStats with LazyLogging { + // noinspection ScalaUnusedSymbol + @deprecated("Use FileSystem instead of FileContext") + def this( + fc: FileContext, + conf: Configuration, + root: Path, + readThreads: Int, + writeTimeout: Duration, + defaultEncoding: Option[String], + namespace: Option[String]) = + this(FileSystem.get(root.toUri, conf), conf, root, readThreads, writeTimeout, defaultEncoding, namespace) + namespace.foreach(setNamespaceURI) private val manager = FileSystemStorageManager(fs, conf, root, namespace) diff --git a/geomesa-fs/geomesa-fs-tools/src/test/scala/org/locationtech/geomesa/fs/tools/ingest/FsManageMetadataCommandTest.scala b/geomesa-fs/geomesa-fs-tools/src/test/scala/org/locationtech/geomesa/fs/tools/ingest/FsManageMetadataCommandTest.scala index 7536a438fa9e..88325a39ceb0 100644 --- a/geomesa-fs/geomesa-fs-tools/src/test/scala/org/locationtech/geomesa/fs/tools/ingest/FsManageMetadataCommandTest.scala +++ b/geomesa-fs/geomesa-fs-tools/src/test/scala/org/locationtech/geomesa/fs/tools/ingest/FsManageMetadataCommandTest.scala @@ -14,7 +14,6 @@ import org.junit.runner.RunWith import org.locationtech.geomesa.features.ScalaSimpleFeature import org.locationtech.geomesa.fs.HadoopSharedCluster import org.locationtech.geomesa.fs.data.FileSystemDataStore -import org.locationtech.geomesa.fs.storage.common.utils.PathCache import org.locationtech.geomesa.utils.collection.SelfClosingIterator import org.locationtech.geomesa.utils.geotools.{FeatureUtils, SimpleFeatureTypes} import org.locationtech.geomesa.utils.io.WithClose