Skip to content

Commit

Permalink
[ZEPPELIN-3529] Add uName into jobGroupId for checking user
Browse files Browse the repository at this point in the history
  • Loading branch information
woowahan-jaehoon committed Nov 5, 2018
1 parent d3028c2 commit b1da18c
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -149,7 +149,11 @@ static boolean isSpark2() {
}

public static String buildJobGroupId(InterpreterContext context) {
return "zeppelin-" + context.getNoteId() + "-" + context.getParagraphId();
String uName = "anonymous";
if (context.getAuthenticationInfo() != null) {
uName = getUserName(context.getAuthenticationInfo());
}
return "zeppelin-" + uName + "-" + context.getNoteId() + "-" + context.getParagraphId();
}

public static String buildJobDesc(InterpreterContext context) {
Expand Down

0 comments on commit b1da18c

Please sign in to comment.