Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
LENS-1520 : Lens build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajitha R authored and Rajitha.R committed Jun 12, 2018
1 parent 138d113 commit 0a128d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ public LensPersistentResult(QueryHandle queryHandle, LensResultSetMetadata metad
this.fileSize = fileSize;
this.conf = conf;
if (isHttpResultAvailable()) {
resultUrlSetter = ReflectionUtils.newInstance(this.conf.getClass(LensConfConstants.RESULT_DOWNLOAD_URL_PROVIDER_CLASS,
resultUrlSetter = ReflectionUtils.newInstance(this.conf.getClass(
LensConfConstants.RESULT_DOWNLOAD_URL_PROVIDER_CLASS,
LensConfConstants.DEFAULT_RESULT_DOWNLOAD_URL_PROVIDER, DownloadResultUrlProvider.class));
this.httpResultUrl = resultUrlSetter.getResultUrl(this.conf, queryHandle.toString());
log.info("Config : " + this.conf.get(LensConfConstants.RESULT_DOWNLOAD_URL_PROVIDER_CLASS) + " Result url set as : "
+ this.httpResultUrl);
log.info("Config : " + this.conf.get(LensConfConstants.RESULT_DOWNLOAD_URL_PROVIDER_CLASS)
+ " Result url set as : " + this.httpResultUrl);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,9 @@ private LensPersistentResult getResultsetFromDAO(QueryHandle queryHandle) throws
throw new NotFoundException("InMemory Query result purged " + queryHandle);
}
try {
conf.addResource(ctx.getConf());
if (ctx != null && ctx.getConf() != null) {
conf.addResource(ctx.getConf());
}
return new LensPersistentResult(query, conf);
} catch (Exception e) {
throw new LensException(e);
Expand Down
4 changes: 2 additions & 2 deletions src/site/apt/admin/config.apt
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ Lens server configuration
*--+--+---+--+
|103|lens.server.session.ws.resource.impl|org.apache.lens.server.session.SessionResource|Implementation class for Session Resource|
*--+--+---+--+
|104|lens.server.ssl.enabled|false|flag to enable https communication between lens server|
|104|lens.server.ssl.enabled|false|flag to enable https communication between lens server and client.|
*--+--+---+--+
|105|lens.server.ssl.file.path|/usr/local/lens/server/certs|local path for cert file if ssl ie enabled.|
|105|lens.server.ssl.file.path|/tmp/certs|local path for cert file if ssl ie enabled.|
*--+--+---+--+
|106|lens.server.ssl.password|password|password for cert file|
*--+--+---+--+
Expand Down

0 comments on commit 0a128d6

Please sign in to comment.