Package org.apache.hdt.core.internal.hdfs

Examples of org.apache.hdt.core.internal.hdfs.HDFSManager


*/
public class ModelTests {

  @Test
  public void testModelLoadSave() {
    HDFSManager manager = HDFSManager.INSTANCE;
  }
View Full Code Here


      IResource r = (IResource) element;
      URI locationURI = r.getLocationURI();
      if (locationURI != null && HDFSURI.SCHEME.equals(locationURI.getScheme())) {
        try {
          if (r instanceof IProject) {
            final HDFSManager hdfsManager = HDFSManager.INSTANCE;
            HDFSServer server = hdfsManager.getServer(locationURI.toString());
            if (server != null) {
              String serverUrl = server.getUri();
              String userId = server.getUserId();
              if (userId == null) {
                try {
                  userId = hdfsManager.getClient(serverUrl).getDefaultUserAndGroupIds().get(0);
                } catch (Throwable e) {
                  userId = null;
                }
              }
              if (userId == null)
View Full Code Here

      IResource r = (IResource) element;
      URI locationURI = r.getLocationURI();
      if (locationURI != null && HDFSURI.SCHEME.equals(locationURI.getScheme())) {
        try {
          if (r instanceof IProject) {
            final HDFSManager hdfsManager = HDFSManager.INSTANCE;
            HDFSServer server = hdfsManager.getServer(locationURI.toString());
            if (server != null) {
              String serverUrl = server.getUri();
              String userId = server.getUserId();
              if (userId == null) {
                try {
                  userId = hdfsManager.getClient(serverUrl,server.getVersion()).getDefaultUserAndGroupIds().get(0);
                } catch (Throwable e) {
                  userId = null;
                }
              }
              if (userId == null)
View Full Code Here

TOP

Related Classes of org.apache.hdt.core.internal.hdfs.HDFSManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.