[ 
https://issues.apache.org/jira/browse/TAJO-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593039#comment-14593039
 ] 

ASF GitHub Bot commented on TAJO-1616:
--------------------------------------

Github user hyunsik commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/602#discussion_r32802905
  
    --- Diff: 
tajo-storage/tajo-storage-common/src/main/java/org/apache/tajo/storage/TableSpaceManager.java
 ---
    @@ -19,236 +19,372 @@
     package org.apache.tajo.storage;
     
     import com.google.common.annotations.VisibleForTesting;
    +import com.google.common.base.Optional;
    +import com.google.common.base.Preconditions;
     import com.google.common.collect.Maps;
    -import org.apache.hadoop.conf.Configuration;
    -import org.apache.hadoop.fs.FileSystem;
    +import net.minidev.json.JSONObject;
    +import net.minidev.json.parser.JSONParser;
    +import net.minidev.json.parser.ParseException;
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
     import org.apache.hadoop.fs.Path;
    -import org.apache.tajo.TaskAttemptId;
    -import org.apache.tajo.catalog.Schema;
    -import org.apache.tajo.catalog.TableMeta;
    +import org.apache.tajo.TajoConstants;
     import org.apache.tajo.conf.TajoConf;
     import org.apache.tajo.storage.fragment.Fragment;
    +import org.apache.tajo.util.FileUtil;
    +import org.apache.tajo.util.Pair;
     
    +import javax.annotation.Nullable;
     import java.io.IOException;
     import java.lang.reflect.Constructor;
    +import java.net.URI;
     import java.util.Map;
    -import java.util.concurrent.ConcurrentHashMap;
    +import java.util.TreeMap;
    +import java.util.UUID;
    +
    +import static org.apache.tajo.storage.StorageConstants.LOCAL_FS_URI;
     
     /**
      * It handles available table spaces and cache TableSpace instances.
    + *
    + * Default tablespace must be a filesystem-based one.
    + * HDFS and S3 can be a default tablespace if a Tajo cluster is in fully 
distributed mode.
    + * Local file system can be a default tablespace if a Tajo cluster runs on 
a single machine.
    --- End diff --
    
    Currently, some part still is hard coded for default tablespace. I'm not 
sure what happen if we use other storage as a default storage. I think that we 
need more tests to allow other storages to be used for default storage.


> Implement TablespaceManager to load Tablespaces
> -----------------------------------------------
>
>                 Key: TAJO-1616
>                 URL: https://issues.apache.org/jira/browse/TAJO-1616
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: storage
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>             Fix For: 0.11.0
>
>
> TablespaceManager should load Tablespace according to storage-default.json 
> and storage-site.json.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to