Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public GeneralResponse getPublicConfig() throws IOException {
return configRes;
}

@RequestMapping(value = "/sparder_rul", method = { RequestMethod.GET }, produces = { "application/json" })
@RequestMapping(value = "/sparder_url", method = { RequestMethod.GET }, produces = { "application/json" })
@ResponseBody
public GeneralResponse getSparderUrl() throws IOException {
GeneralResponse configRes = new GeneralResponse();
Expand Down
7 changes: 6 additions & 1 deletion webapp/app/js/controllers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
$scope.active = {}; //reset
$scope.active[tab] = true;
}
$scope.$on('change.active', function(event, data) {
$scope.$on('change.active', function(event, data) {
$scope.activateTab(data.activeTab);
$scope.tabData.groupName = data.groupName
});
Expand Down Expand Up @@ -307,6 +307,11 @@ KylinApp.controller('AdminCtrl', function ($scope, AdminService, CacheService, T
$window.open(downloadUrl);
}

$scope.openSparderUrl = function(){
var sparder_url = Config.service.url + 'admin/sparder_url';
$window.open(sparder_url);
}

$scope.isCuratorScheduler = function() {
return kylinConfig.getProperty("kylin.job.scheduler.default") === "100";
}
Expand Down
3 changes: 3 additions & 0 deletions webapp/app/partials/admin/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ <h3>Actions</h3>
<div style="padding-top: 10px;width: 260px;" ng-if="false">
<a class="btn btn-success btn-lg btn-block" tooltip="Clean unused HDFS and HBASE space" ng-click="cleanStorage()">Clean Up Storage</a>
</div>
<div style="padding-top: 10px;width: 260px;">
<a ng-click="openSparderUrl();" tooltip="Click to visit Sparder URL." class="btn btn-primary btn-lg btn-block"><i class="fa fa-server"></i>Sparder</a>
</div>
<div style="padding-top: 10px;width: 260px;" ng-if="isCacheEnabled()">
<a class="btn btn-primary btn-lg btn-block" ng-click="disableCache()">Disable Cache</a>
</div>
Expand Down