config.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. App.testMode = (location.port == '3333'); // test mode is automatically enabled if running on brunch server
  20. App.testModeDelayForActions = 10000;
  21. App.skipBootstrap = false;
  22. App.alwaysGoToInstaller = false;
  23. App.testEnableSecurity = true; // By default enable security is tested; turning it false tests disable security
  24. App.testNameNodeHA = true;
  25. App.apiPrefix = '/api/v1';
  26. App.defaultStackVersion = 'HDP-2.0.5';
  27. App.defaultLocalStackVersion = 'HDPLocal-2.0.5';
  28. App.defaultJavaHome = '/usr/jdk/jdk1.6.0_31';
  29. App.timeout = 180000; // default AJAX timeout
  30. App.maxRetries = 3; // max number of retries for certain AJAX calls
  31. App.bgOperationsUpdateInterval = 6000;
  32. App.componentsUpdateInterval = 6000;
  33. App.contentUpdateInterval = 15000;
  34. App.maxRunsForAppBrowser = 500;
  35. App.pageReloadTime=3600000;
  36. App.singleNodeInstall = false;
  37. App.singleNodeAlias = document.location.hostname;
  38. // experimental features are automatically enabled if running on brunch server
  39. App.enableExperimental = false;
  40. App.supports = {
  41. addServices: false,
  42. hostOverrides: false,
  43. mirroring: false,
  44. secureCluster: true,
  45. secureClusterProceedPopup: false,
  46. reassignMaster: false,
  47. stackUpgrade: false,
  48. capacitySchedulerUi: false,
  49. startStopAllServices: true,
  50. hiveOozieExtraDatabases: true,
  51. multipleHBaseMasters: false,
  52. addMasters: false,
  53. customizeSmokeTestUser: true,
  54. hue: false,
  55. ldapGroupMapping: false,
  56. localRepositories: false,
  57. highAvailability: true,
  58. deleteHost: false
  59. };
  60. if (App.enableExperimental) {
  61. for (var support in App.supports) {
  62. App.supports[support] = true;
  63. }
  64. }
  65. // this is to make sure that IE does not cache data when making AJAX calls to the server
  66. $.ajaxSetup({
  67. cache: false
  68. });
  69. /**
  70. * Test Mode values
  71. */
  72. App.test_hostname = 'hostname';