/** * Shuffle specific utils - build string for encoding from URL * @param url * @return string for encoding */ public static String buildMsgFrom(URL url) { return buildMsgFrom(url.getPath(), url.getQuery(), url.getPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param url * @return string for encoding */ public static String buildMsgFrom(URL url) { return buildMsgFrom(url.getPath(), url.getQuery(), url.getPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param request * @return string for encoding */ public static String buildMsgFrom(HttpServletRequest request ) { return buildMsgFrom(request.getRequestURI(), request.getQueryString(), request.getLocalPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param request * @return string for encoding */ public static String buildMsgFrom(HttpServletRequest request ) { return buildMsgFrom(request.getRequestURI(), request.getQueryString(), request.getLocalPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param request * @return string for encoding */ public static String buildMsgFrom(HttpServletRequest request ) { return buildMsgFrom(request.getRequestURI(), request.getQueryString(), request.getLocalPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param url * @return string for encoding */ public static String buildMsgFrom(URL url) { return buildMsgFrom(url.getPath(), url.getQuery(), url.getPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param url * @return string for encoding */ public static String buildMsgFrom(URL url) { return buildMsgFrom(url.getPath(), url.getQuery(), url.getPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param request * @return string for encoding */ public static String buildMsgFrom(HttpServletRequest request ) { return buildMsgFrom(request.getRequestURI(), request.getQueryString(), request.getLocalPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param url * @return string for encoding */ public static String buildMsgFrom(URL url) { return buildMsgFrom(url.getPath(), url.getQuery(), url.getPort()); } /**
/** * Shuffle specific utils - build string for encoding from URL * @param request * @return string for encoding */ public static String buildMsgFrom(HttpServletRequest request ) { return buildMsgFrom(request.getRequestURI(), request.getQueryString(), request.getLocalPort()); } /**
.retrieveTokenSecret(jobId); String enc_str = SecureShuffleUtils.buildMsgFrom(request);
String enc_str = SecureShuffleUtils.buildMsgFrom(requestUri);
String enc_str = SecureShuffleUtils.buildMsgFrom(requestUri);
String enc_str = SecureShuffleUtils.buildMsgFrom(requestUri);
String msgToEncode = SecureShuffleUtils.buildMsgFrom(url); String encHash = SecureShuffleUtils.hashFromString(msgToEncode, jobTokenSecret);
String enc_str = SecureShuffleUtils.buildMsgFrom(url); URLConnection connectionGood = url.openConnection();
private void setupConnectionsWithRetry(URL url) throws IOException { openConnectionWithRetry(url); if (stopped) { return; } // generate hash of the url String msgToEncode = SecureShuffleUtils.buildMsgFrom(url); String encHash = SecureShuffleUtils.hashFromString(msgToEncode, shuffleSecretKey); setupShuffleConnection(encHash); connect(connection, connectionTimeout); // verify that the thread wasn't stopped during calls to connect if (stopped) { return; } verifyConnection(url, msgToEncode, encHash); }
private void setupConnectionsWithRetry(MapHost host, Set<TaskAttemptID> remaining, URL url) throws IOException { openConnectionWithRetry(host, remaining, url); if (stopped) { return; } // generate hash of the url String msgToEncode = SecureShuffleUtils.buildMsgFrom(url); String encHash = SecureShuffleUtils.hashFromString(msgToEncode, shuffleSecretKey); setupShuffleConnection(encHash); connect(connection, connectionTimeout); // verify that the thread wasn't stopped during calls to connect if (stopped) { return; } verifyConnection(url, msgToEncode, encHash); }
private void setupConnectionsWithRetry(MapHost host, Set<TaskAttemptID> remaining, URL url) throws IOException { openConnectionWithRetry(host, remaining, url); if (stopped) { return; } // generate hash of the url String msgToEncode = SecureShuffleUtils.buildMsgFrom(url); String encHash = SecureShuffleUtils.hashFromString(msgToEncode, shuffleSecretKey); setupShuffleConnection(encHash); connect(connection, connectionTimeout); // verify that the thread wasn't stopped during calls to connect if (stopped) { return; } verifyConnection(url, msgToEncode, encHash); }
private void setupConnectionsWithRetry(MapHost host, Set<TaskAttemptID> remaining, URL url) throws IOException { openConnectionWithRetry(host, remaining, url); if (stopped) { return; } // generate hash of the url String msgToEncode = SecureShuffleUtils.buildMsgFrom(url); String encHash = SecureShuffleUtils.hashFromString(msgToEncode, shuffleSecretKey); setupShuffleConnection(encHash); connect(connection, connectionTimeout); // verify that the thread wasn't stopped during calls to connect if (stopped) { return; } verifyConnection(url, msgToEncode, encHash); }