Commit Graph

516 Commits

Author SHA1 Message Date
Mike Drob b1729a298b
HBASE-19784 bin/stop-hbase more friendly when hbase already stopped
Signed-off-by: Michael Stack <stack@apache.org>
2018-01-17 15:48:53 -08:00
Josh Elser 7224546b1e HBASE-19770 Separate command return values from interactive shells
Uses a new option to the shell to specify that return values are
unwanted instead of overloading the interactive option. Enable
return_values when the shell is non-interactive.

Signed-off-by: Apekshit Sharma <appy@apache.org>
2018-01-17 13:14:46 -05:00
Mike Drob ea7d5fc884 HBASE-19552 Update hbase-thirdparty version
Some manual cleanup of changing package names in pom files and getting
rid of the no-longer-needed netty system property.

This commit will break compilation, package renames in source code are
done in follow-on commits using straightforward find and replace.

's/org.apache.hadoop.hbase.shaded.com.google/org.apache.hbase.thirdparty.com.google/'
's/org.apache.hadoop.hbase.shaded.io.netty/org.apache.hbase.thirdparty.io.netty/'
2017-12-28 11:41:42 -06:00
Apekshit Sharma 5f02bf5b7b HBASE-10092 Addendum. Move to slf4j. Few changes in bin/ scripts. 2017-12-21 19:22:00 -08:00
Apekshit Sharma 330b0d05b9 HBASE-19114 Split out o.a.h.h.zookeeper from hbase-server and hbase-client
- Moved DrainingServerTracker and RegionServerTracker to hbase-server:o.a.h.h.master.
- Moved SplitOrMergeTracker to oahh.master (because it depends on a PB)
- Moving hbase-client:oahh.zookeeper.*  to hbase-zookeeper module.  After HBASE-19200, hbase-client doesn't need them anymore (except 3 classes).
- Renamed some classes to use a consistent naming for classes - ZK instead of mix of ZK, Zk , ZooKeeper. Couldn't rename following public classes: MiniZooKeeperCluster, ZooKeeperConnectionException. Left RecoverableZooKeeper for lack of better name. (suggestions?)
- Sadly, can't move tests out because they depend on HBaseTestingUtility (which defeats part of the purpose - trimming down hbase-server tests. We need to promote more use of mocks in our tests)
2017-11-17 13:20:18 -08:00
Apekshit Sharma 31234eb862 HBASE-16459 Remove unused hbase shell --format option 2017-11-10 00:08:02 -08:00
Artem Ervits b3e438b9c5 HBASE-19140 hbase-cleanup.sh uses deprecated call to remove files in hdfs
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-11-01 10:30:49 -07:00
Jerry He a43a00e89c HBASE-10367 RegionServer graceful stop / decommissioning
Signed-off-by: Jerry He <jerryjch@apache.org>
2017-10-19 21:54:45 -07:00
Chia-Ping Tsai 87c3ae9314 HBASE-18780 Remove HLogPrettyPrinter
Signed-off-by: Michael Stack <stack@apache.org>
2017-09-08 10:20:20 -07:00
Tamas Penzes bbf23d9627 HBASE-18369 hbase thrift web-ui not available
classpath issue when running as a developer fixed
removed thrift webapp from server (it's not used at all, since moved to thrift webapp)

Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-08-28 08:45:57 -07:00
Balazs Meszaros a7270cc08c HBASE-18705 bin/hbase does not find cached_classpath.txt
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-08-28 04:09:05 -07:00
Mike Drob ea8fa59a4c HBASE-18238 rubocop autocorrect for bin/ 2017-08-14 13:53:37 -05:00
Michael Stack c6ac04ab39 HBASE-18271 Shade netty Purge mention of netty-all.
Add in hbase-thirdparty hbase-shaded-netty instead.
s/io.netty/org.apache.hadoop.hbase.shaded.io.netty/ everywhere in hbase.

Also set a system property when running tests and when starting
hbase; required by netty so can find the relocation files in the
bundled .so.
2017-08-13 12:46:21 -07:00
Mike Drob 775179bc4a HBASE-18393 Fix shell noninteractive launch
Signed-off-by: Sean Busbey <busbey@apache.org>
2017-07-19 13:54:55 -05:00
Samir Ahmic 56d00f574b HBASE-18392 Add default value of --movetimeout to rolling-restart.sh
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-07-18 07:04:29 -07:00
tedyu c015abe507 HBASE-18274 hbase autorestart will overwrite the gc log (Fangyuan Deng) 2017-06-27 08:03:26 -07:00
Chinmay Kulkarni df06294915 HBASE-17988 get-active-master.rb and draining_servers.rb no longer work
Modified jruby scripts to pick up drainingZNode and masterAddressZNode
correctly, from within znodePaths in ZooKeeperWatcher. Modified
get-active-master.rb to retrieve server name using MasterAddressTracker
instead of ZKUtil.

Tested on a standalone HBase deployment to check that the scripts work
as expected.

Signed-off-by: Sean Busbey <busbey@apache.org>
Signed-off-by: Mike Drob <mdrob@apache.org>
2017-06-20 01:06:47 -05:00
Mike Drob 140ce1453e HBASE-16196 Update to JRuby 9.1.9.0
* Get hbase-shell to use latest current JRuby release.
* Update license information to reflect the changes to jruby-complete.jar
* Update shell scripts for Ruby 1.8->2.x incompatabilities
* Update joni and jcodings to compatible versions

Signed-off-by: Sean Busbey <busbey@apache.org>
2017-05-31 11:09:07 -05:00
Xiang Li 4ab94744e2 HBASE-17997: In dev environment, add jruby-complete jar to classpath only when jruby is needed
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-05-25 08:07:50 -07:00
Xiang Li b67f6fecc1 HBASE-15199 (addendum) - When JRUBY_HOME is specified, update CLASSPATH and HBASE_OPTS when jruby is needed
Signed-off-by: Sean Busbey <busbey@apache.org>
Signed-off-by: tedyu <yuzhihong@gmail.com>
Signed-off-by: Jerry He <jerryjch@apache.org>
2017-05-09 16:12:45 -05:00
Xiang Li 083796d2e6 HBASE-15199 Move jruby jar so only on runtime classpath for hbase-shell and support scripts.
Signed-off-by: Sean Busbey <busbey@apache.org>
Signed-off-by: Jerry He <jerryjch@apache.org>
2017-05-02 16:05:54 -05:00
Chia-Ping Tsai 053e61541e HBASE-15583 Any HTableDescriptor we give out should be immutable 2017-04-27 03:22:29 +08:00
tedyu 75d0f49dcd HBASE-14123 HBase Backup/Restore Phase 2 (Vladimir Rodionov) 2017-03-18 03:04:19 -07:00
CHIA-PING TSAI 8ad3add0d4 HBASE-17426 Inconsistent environment variable names for enabling JMX 2017-03-17 09:10:06 +08:00
Loknath Priyatham Teja Singamsetty 06b67a632c HBASE-15924 Enhance hbase services autorestart capability to hbase-daemon.sh
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2016-12-20 17:37:10 -08:00
Umesh Agashe 1f1a13f2e2 HBASE-16753 There is a mismatch between suggested Java version in hbase-env.sh
Signed-off-by: Dima Spivak <dimaspivak@apache.org>
2016-10-05 10:16:41 -07:00
Esteban Gutierrez b3888eadf8 HBASE-16379 [replication] Minor improvement to replication/copy_tables_desc.rb 2016-08-10 11:00:23 -07:00
Apekshit Sharma a396ae773a HBASE-16044 Fix 'hbase shell' output parsing in graceful_stop.sh
Change-Id: I94b2f665105837d31281be66d620b6152c3bc9d1
2016-07-11 11:28:33 -07:00
tedyu b69c77ac1a HBASE-16021 graceful_stop.sh: Wrap variables in double quote to avoid "[: too many arguments" error (Samir Ahmic) 2016-06-14 15:36:11 -07:00
Apekshit bdb46f01b9 HBASE-15845 Changes:
- Renaming hbase.rb to hbase_constants.rb because there are two hbase.rb files right now which is confusing.
- Remove omnipresence of formatter object since it is kind of a use-and-throw class. Commands should create
  an instance, use it to format the output and discard it.
- Some refactoring

Change-Id: If9ea9873904e0a39d199a6aa10e23864b86a2f09
2016-06-03 13:37:38 -07:00
Jurriaan Mous a1f0c1cbb3 HBASE-15875 Remove HTable references and HTableInterface
Signed-off-by: stack <stack@apache.org>
2016-05-30 19:56:54 -07:00
Alex Moundalexis 0bf065a5d5 HBASE-15768 fix capitalization of ZooKeeper usage
Signed-off-by: Sean Busbey <busbey@apache.org>
2016-05-05 15:35:44 -05:00
tedyu 52fd70500e HBASE-15486 Avoid multiple disable/enable balancer calls while running rolling-restart.sh --graceful (Samir Ahmic) 2016-03-24 06:55:45 -07:00
Matteo Bertozzi 7177e4be64 HBASE-15508 Add command for exporting snapshot in hbase command script (Yufeng Jiang) 2016-03-23 10:26:32 -07:00
Enis Soztutar d4610df32e HBASE-15145 HBCK and Replication should authenticate to zookepeer using server principal 2016-01-26 14:43:24 -08:00
tedyu c2f67a053e HBASE-15057 local-master-backup.sh doesn't start HMaster correctly (Samir Ahmic) 2016-01-08 15:58:01 -08:00
Enis Soztutar 893a54c3a4 HBASE-15066 Small improvements to Canary tool 2016-01-06 02:47:19 -08:00
tedyu 9b8895ba29 HBASE-15043 region_status.rb broken with TypeError: no public constructors for Java::OrgApacheHadoopHbaseClient::HBaseAdmin (Samir Ahmic) 2015-12-29 07:06:43 -08:00
tedyu 449fb81286 HBASE-14030 Revert due to pending review comments 2015-12-28 01:08:02 -08:00
tedyu de69f0df34 HBASE-14030 HBase Backup/Restore Phase 1 (Vladimir Rodionov) 2015-12-27 10:02:09 -08:00
stack 91945d7f49 HBASE-14749 Make changes to region_mover.rb to use RegionMover Java tool (Abhishek Singh Chouhan) 2015-12-02 18:14:10 -08:00
tedyu ed4e00119e HBASE-14462 rolling_restart.sh --master-only throws "line 142: test: 0: unary operator expected" (Samir Ahmic) 2015-12-01 10:28:56 -08:00
tedyu 71d41e0c9c HBASE-14531 graceful_stop.sh "if [ \"$local\" ]" condition unexpected behaviour (Samir Ahmic) 2015-11-29 13:10:00 -08:00
tedyu 1c900e1721 HBASE-14523 rolling-restart.sh --graceful will start regionserver process on master node 2015-11-27 15:37:25 -08:00
stack 050ebe850b HBASE-14768 bin/graceful_stop.sh logs nothing as a balancer state to be stored (Hiroshi Ikeda) 2015-11-04 21:51:28 -08:00
stack 007e4dfa13 HBASE-14709 Parent change breaks graceful_stop.sh on a cluster 2015-10-27 16:42:49 -07:00
tedyu 1b66ea71b6 HBASE-14581 Znode cleanup throws auth exception in secure mode 2015-10-10 01:59:57 -07:00
Elliott Clark a77f830198 HBASE-14529 Respond to SIGHUP to reload config
Summary: Add a signal handler to reload the config.

Test Plan: Send the command and see that configs get reloaded.

Differential Revision: https://reviews.facebook.net/D47877
2015-10-08 16:38:18 -07:00
stack 7b9d88f9d7 HBASE-14193 Remove support for direct upgrade from pre-0.96 versions (Lars Francke) 2015-09-22 09:57:28 -07:00
Esteban Gutierrez f8dd99d738 HBASE-14354 Minor improvements for usage of the mlock agent 2015-09-01 18:37:34 -07:00
Samir Ahmic 498c1845ab HBASE-14325 Add snapshotinfo command to hbase script.
Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
2015-08-31 09:07:35 -07:00
tedyu 4256128fa2 HBASE-14258 Addendum fixes case sensitivity in 'load' (Vladimir Rodionov) 2015-08-29 02:10:46 -07:00
tedyu 506726ed28 HBASE-14258 Make region_mover.rb script case insensitive with regard to hostname (Vladimir Rodionov) 2015-08-25 16:36:39 -07:00
Sean Busbey 4ce6f486d0 HBASE-14087 Ensure correct ASF headers for docs/code
* adds missing headers
* corrects some old-form headers to current
* restores proper header for guava copied LimitInputStream
* adds proper header for protobuf copied read/writeRawVarint
2015-07-29 14:25:43 -05:00
Elliott Clark 608c3aa15c HBASE-13927 Allow hbase-daemon.sh to conditionally redirect the log or not
Signed-off-by: Sean Busbey <busbey@apache.org>
2015-07-06 11:48:36 -05:00
tedyu 211786e00c HBASE-13580 region_mover.rb broken with TypeError: no public constructors for Java::OrgApacheHadoopHbaseClient::HTable (Samir Ahmic) 2015-05-11 09:01:56 -07:00
tedyu 67c6352e8a HBASE-13633 draining_servers.rb broken with NoMethodError: undefined method 'getServerInfo' (Samir Ahmic) 2015-05-06 09:28:23 -07:00
Enis Soztutar 3d22c74cb4 HBASE-13589 [WINDOWS] hbase.cmd script is broken 2015-04-28 17:15:53 -07:00
Y. SREENIVASULU REDDY f2e1238f98 HBASE-13490 echo ulimit output to log during daemon foreground start.
Signed-off-by: Sean Busbey <busbey@apache.org>
2015-04-27 01:31:43 -05:00
tedyu bcc5e1b353 HBASE-13486 region_status.rb broken with NameError: uninitialized constant IOException (Samir Ahmic) 2015-04-17 06:38:46 -07:00
tedyu d6926629f9 HBASE-13475 Small spelling mistake in region_mover#isSuccessfulScan causes NoMethodError (Victor Xu) 2015-04-15 05:05:37 -07:00
stack f57dca5e1b HBASE-13198 Remove HConnectionManager (Mikhail Antonov) 2015-03-20 09:41:48 -07:00
Gustavo Anatoly 99ec366147 HBASE-13229 Specify bash for local-regionservers.sh and local-master-backup.sh
Signed-off-by: Sean Busbey <busbey@apache.org>
2015-03-17 11:57:41 -05:00
Sean Busbey d9d1b07cfc Revert "Specify bash for local-regionservers.sh and local-master-backup.sh"
This reverts commit ca8876a9f2.
2015-03-17 11:57:08 -05:00
Gustavo Anatoly ca8876a9f2 Specify bash for local-regionservers.sh and local-master-backup.sh
Signed-off-by: Sean Busbey <busbey@apache.org>
2015-03-17 09:57:07 -05:00
Jonathan M Hsieh 3509cc2134 HBASE-13162 Add capability for cleaning hbase acls to hbase cleanup script (Srikanth Srungarapu) 2015-03-12 17:06:27 -07:00
Lars George fa299bfa80 HBASE-13165 Fix docs and scripts for default max heaps size after HBASE-11804 (code) 2015-03-11 11:20:25 +01:00
Lars George 4d6442ada6 HBASE-13174 Apply HBASE-11804 to Windows scripts 2015-03-11 10:37:49 +01:00
Andrey Stepachev 948746ce4e HBASE-12990 MetaScanner should be replaced by MetaTableAccessor 2015-03-09 10:39:59 +00:00
Y. SREENIVASULU REDDY b6da97890b HBASE-12969 Parameter Validation is not there for shell script, local-master-backup.sh and local-regionservers.sh
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-03-07 08:13:51 -08:00
Esteban Gutierrez bd5eae0e1d HBASE-13139 Clean up missing JAVA_HOME message in bin/hbase-config.sh
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-03-03 08:35:45 -08:00
Enis Soztutar ec877959d7 HBASE-13120 Allow disabling hadoop classpath and native library lookup (Siddharth Wagle) 2015-02-27 16:27:40 -08:00
Andrew Purtell 3f7b18cefc HBASE-12989 region_mover.rb unloadRegions method uses ArrayList concurrently resulting in errors (Abhishek Singh Chouhan) 2015-02-11 12:12:48 -08:00
Elliott Clark a7d93155f1 HBASE-12999 Make foreground_start return the correct exit code 2015-02-10 14:36:29 -08:00
tedyu 4388fed830 HBASE-12957 region_mover#isSuccessfulScan may be extremely slow on region with lots of expired data (Hongyu Bi) 2015-02-03 20:06:23 -08:00
Elliott Clark 5c1b08c5ca HBASE-12964 Add the ability for hbase-daemon.sh to start in the foreground 2015-02-03 15:09:48 -08:00
Elliott Clark 45fdc0e835 HBASE-12892 Add a class to allow taking a snapshot from the command line 2015-01-25 17:18:50 -08:00
Andrew Purtell e370baf8a5 HBASE-12904 Threading issues in region_mover.rb 2015-01-22 13:11:31 -08:00
stack 8aadc5de1e HBASE-12608 region_mover.rb does not log moving region count correctly when loading regions (cuijianwei) 2014-12-27 10:37:40 -08:00
tedyu 0a22196468 HBASE-12662 region_status.rb is failing with NoMethodError (Ashish Singhi) 2014-12-09 09:33:41 -08:00
Patrick White f2be914f73 HBASE-12569 Update scripts to control MaxDirectMemorySize via env vars
Signed-off-by: stack <stack@apache.org>
2014-11-24 23:57:46 -08:00
Enis Soztutar 5911c030a5 HBASE-12560 [WINDOWS] Append the classpath from Hadoop to HBase classpath in bin/hbase.cmd 2014-11-21 22:07:10 -08:00
Florin Broasca 69f685e7cf HBASE-12513 Graceful stop script does not restore the balancer state
Signed-off-by: stack <stack@apache.org>
2014-11-18 13:14:41 -08:00
stack b94e6738d9 HBASE-10378 Refactor write-ahead-log implementation -- ADDEDNUM 2014-11-18 12:12:35 -08:00
Jesse Yates 0c2314b07a HBASE-12428 region_mover.rb script is broken if port is not specified
If the port is not specified, there is an object nil exception.
2014-11-06 13:01:08 -08:00
Enis Soztutar 0fa43bd574 HBASE-12372 [WINDOWS] Enable log4j configuration in hbase.cmd 2014-10-29 11:59:55 -07:00
stack b68b3bf784 HBASE-12240 hbase-daemon.sh should remove pid file if process not found running (Ashish Singhi) 2014-10-12 23:08:13 -07:00
Elliott Clark 915b338634 HBASE-11804 Raise default heap size if unspecified 2014-10-01 13:39:52 -07:00
Jimmy Xiang 683f3b3d50 HBASE-12034 If I kill single RS in branch-1, all regions end up on Master! 2014-09-29 13:50:59 -07:00
stack 8e5aad43a2 HBASE-6290 Add a function a mark a server as dead and start the recovery the process (Talat Uyarer) 2014-09-29 10:23:32 -07:00
stack 4be3cf8fec HBASE-6290 Add a function a mark a server as dead and start the recovery the process (Talat Uyarer) 2014-09-29 10:22:10 -07:00
Ted Yu 88cd708d8d HBASE-11948 graceful_stop.sh should use hbase-daemon.sh when executed on the decomissioned node (Sebastien Barrier) 2014-09-26 15:35:57 +00:00
stack 5d4bc3ea1c HBASE-10748 hbase-daemon.sh fails to execute with 'sh' command 2014-09-24 09:21:03 -07:00
stack ee573ea285 HBASE-12032 Script to stop regionservers via RPC (Patrick White) 2014-09-19 16:49:59 -07:00
stack 098f8c4401 HBASE-12021 Hbase shell does not respect the HBASE_OPTS set by the user in console (Ashish Singhi) 2014-09-19 11:06:53 -07:00
stack 257562036b HBASE-12019 hbase-daemon.sh overwrite HBASE_ROOT_LOGGER and HBASE_SECURITY_LOGGER variables (Sebastien Barrier) 2014-09-18 17:00:53 -07:00
Patrick White b26ec4e3df HBASE-12013 Support multiple regionservers per host in region_mover.rb
Signed-off-by: Elliott Clark <eclark@apache.org>
2014-09-18 08:48:15 -07:00
Nick Dimiduk 29b274a116 HBASE-11845 HFile tool should implement Tool, disable blockcache by default
HFileTool now accepts configuration via -D arguments. The blockcache is
disabled by default.
2014-09-11 14:39:30 -07:00
Andrew Purtell f9be6db0e1 HBASE-11844 region_mover.rb load enters an infinite loop if region already present on target server (Stephen Veiss) 2014-08-28 14:33:22 -07:00
Jonathan M Hsieh 4b8a38ebb5 HBASE-11658 Piped commands to hbase shell should return non-zero if shell command failed (Sean Busbey) 2014-08-08 13:54:53 -07:00