Guangxu Cheng
50b201668b
HBASE-18129 truncate_preserve fails when the truncate method doesn't exist on the master
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-05-31 02:32:57 -07:00
Guangxu Cheng
8c313d5be4
HBASE-18094 Display the return value of the command append
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-05-23 08:59:54 -07:00
huzheng
f9dc4cad63
HBASE-11013 Clone Snapshots on Secure Cluster Should provide option to apply Retained User Permissions
...
Signed-off-by: Guanghao Zhang <zghao@apache.org>
2017-05-18 17:54:53 +08:00
Karan Mehta
8d51c83712
HBASE-14925 Addendum patch for 'list_regions' that support column projection
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2017-05-08 18:09:50 -07:00
Josh Elser
1d33f61918
HBASE-17973 Fix incorrect method call in list_regions and expand tests (addendum)
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2017-05-08 18:00:07 -07:00
Josh Elser
eaaf70354f
HBASE-17973 Create shell command to identify regions with poor locality
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2017-05-08 18:00:07 -07:00
Enis Soztutar
961bb7325c
HBASE-17979 HBase Shell 'list' Command Help Doc Improvements (Hugo Louro)
2017-05-01 16:37:09 -07:00
Karan Mehta
3765e7bedb
HBASE-14925 Develop HBase shell command/tool to list table's region info through command line
...
Signed-off-by: Ashish Singhi <ashishsinghi@apache.org>
2017-04-28 14:08:04 +05:30
CHIA-PING TSAI
1105e1260d
HBASE-17736 Some options can't be configured by the shell
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2017-03-09 16:53:31 -08:00
Andrew Purtell
ba292ccbf4
HBASE-17729 Missing shortcuts for some useful HCD options
2017-03-08 10:05:29 -08:00
Andrew Purtell
ccf1f17d78
HBASE-17722 Metrics subsystem stop/start messages add a lot of useless bulk to operational logging
...
Conflicts:
hbase-spark/src/test/resources/log4j.properties
2017-03-03 12:35:21 -08:00
Ajay Jadhav
67fe516ec9
HBASE-17280 Add mechanism to control hbase cleaner behavior
...
Signed-off-by: tedyu <yuzhihong@gmail.com>
2017-02-09 12:18:42 -08:00
Guanghao Zhang
4b3df0f926
HBASE-17296 Provide per peer throttling for replication
...
Signed-off-by: Phil Yang <yangzhe1991@apache.org>
2016-12-15 16:13:04 +08:00
Guanghao Zhang
66941910bd
HBASE-16653 Backport HBASE-11393 to branches which support namespace
...
Signed-off-by: chenheng <chenheng@apache.org>
2016-10-18 09:12:47 +08:00
Apekshit Sharma
29e8300a87
HBASE-16682 Fix Shell tests failure. NoClassDefFoundError for Minikdc.
...
Change-Id: Iaf23c4656a2af7a8b61557612c194ca944cf9c8a
2016-10-05 14:09:02 -07:00
Jonathan M Hsieh
13d6acbc7f
HBASE-12088 Remove unused hadoop-1.0, hadoop-1.1 profiles from non-root poms
2016-09-21 20:52:19 -07:00
Umesh Agashe
059a169d3a
HBASE-15297 Correct handling of namespace existence checks in shell.
...
Changes namespace_exists? method in SecurityAdmin ruby code to catch NamespaceNotFoundException
and modified Admin.java file to document the exception.
Signed-off-by: Sean Busbey <busbey@apache.org>
Conflicts:
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
2016-09-12 23:58:21 -07:00
Andrew Purtell
fe57fa4daa
HBASE-16576 Shell add_peer doesn't allow setting cluster_key for custom endpoints
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Conflicts:
hbase-shell/src/main/ruby/shell/commands/add_peer.rb
hbase-shell/src/test/ruby/hbase/replication_admin_test.rb
2016-09-09 14:54:15 -07:00
Mikhail Antonov
ce651f5c6d
HBASE-16024 Revert HBASE-15406 from branch-1.3
2016-07-22 14:50:32 -07:00
Apekshit Sharma
8cf6adae72
HBASE-16227 [Shell] Column value formatter not working in scans.
...
Tested : manually using shell.
Change-Id: I9eef7efa68393a762ec872447f8e36dfc6d6f1bc
2016-07-13 14:15:20 -07:00
tedyu
b2f9f131b2
HBASE-16147 Addendum fixes syntax in admin_test
2016-06-30 16:24:02 -07:00
tedyu
cbc99f6d5a
HBASE-16147 Addendum fixes syntax in admin_test
2016-06-30 16:17:43 -07:00
tedyu
4471b1a023
HBASE-16147 Add ruby wrapper for getting compaction state
2016-06-30 12:32:40 -07:00
Apekshit Sharma
48492ec7fd
Revert HBASE-15965 and HBASE-15849.
...
While it's fine to introduce these format changes in minor version, reverting it from branch-1 after discussion on HBASE-16044.
2016-06-28 17:59:42 -07:00
Apekshit Sharma
c2b4c6f637
HBASE-15965
...
- Testing by executing a command will cover the exact path users will trigger, so its better then directly calling library functions in tests. Changing the tests to use @shell.command(:<command>, args) to execute them like it's a command coming from shell.
Norm change:
Commands should print the output user would like to see, but in the end, should also return the relevant value. This way:
- Tests can use returned value to check that functionality works
- Tests can capture stdout to assert particular kind of output user should see.
- We do not print the return value in interactive mode and keep the output clean. See Shell.command() function.
Bugs found due to this change:
- Uncovered bug in major_compact.rb with this approach. It was calling admin.majorCompact() which doesn't exist but our tests didn't catch it since they directly tested admin.major_compact()
- Enabled TestReplicationShell. If it's bad, flaky infra will take care of it.
Change-Id: I5d8af16bf477a79a2f526a5bf11c245b02b7d276
2016-06-06 18:00:23 -07:00
Apekshit Sharma
1972996ffc
HBASE-15849 Simplify the way we handle runtime of commands.
...
Functions format_simple_command and format_and_return_simple_command are used to print runtimes right now. They are called from within every single command and use Ruby's 'yield' magic. Instead, we can simplify it using 'command_safe' function. Since command_safe wraps all commands, we can simply time before and after we call individual command.
If a command only wants to time a part of its logic, it can set instance variables start_time and end_time accordingly which is far more simpler to understand and work with than 'yield'.
Change-Id: Ibfacf3593175af22fc4f7d80896dd2f6d7c5dde3
2016-06-03 16:59:34 -07:00
Apekshit Sharma
2ee7d2a488
HBASE-15845 Changes:
...
- 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
Tested: Ran TestShell
Change-Id: I12176ee12695df952ee4b0f8397e5d3be8f16a87
2016-06-03 16:35:29 -07:00
tedyu
0cedd8b344
HBASE-15923 Shell rows counter test fails
2016-05-31 14:19:42 -07:00
Enis Soztutar
70c3a7854f
HBASE-10358 Shell changes for setting consistency per request (yi liang)
2016-05-26 17:04:18 -07:00
stack
627b48b799
HBASE-4368 Expose processlist in shell (per regionserver and perhaps by cluster) (Talat Uyarer)
2016-05-23 15:47:35 -07:00
Jerry He
b7de663580
HBASE-14818 user_permission does not list namespace permissions (li xiang)
2016-05-21 20:32:20 -07:00
Matteo Bertozzi
e5eea96ca6
HBASE-15843 Replace RegionState.getRegionInTransition() Map with a Set
2016-05-18 12:51:17 -07:00
tedyu
ce43e33876
HBASE-15769 Perform validation on cluster key for add_peer (Matt Warhaftig)
2016-05-17 13:26:45 -07:00
tedyu
5e552e57a5
HBASE-15641 Shell "alter" should do a single modifyTable operation (Matt Warhaftig)
2016-04-21 21:11:34 -07:00
chenheng
96e9c466d2
HBASE-15406 Split / merge switch left disabled after early termination of hbck
...
Conflicts:
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/ZooKeeperProtos.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.java
hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckOneRS.java
2016-04-15 15:34:43 +08:00
tedyu
85f2caf184
HBASE-15633 Backport HBASE-15507 to branch-1 (Geoffrey Jacoby)
2016-04-13 02:25:32 -07:00
tedyu
d942d4e5a1
HBASE-15302 Reenable the other tests disabled by HBASE-14678 (Phil Yang)
2016-03-18 09:06:34 -07:00
tedyu
a06994bbc1
HBASE-12940 Expose listPeerConfigs and getPeerConfig to the HBase shell (Geoffrey Jacoby)
2016-03-16 19:52:25 -07:00
chenheng
18194f8a56
HBASE-15128 Disable region splits and merges switch in master
2016-02-29 20:41:27 +08:00
Mikhail Antonov
998e339d6e
HBASE-15342 create branch-1.3 and update branch-1 poms to 1.4.0-SNAPSHOT
2016-02-28 16:23:29 -08:00
Enis Soztutar
27dd1156fb
HBASE-15147 Shell should use Admin.listTableNames() instead of Admin.listTables()
2016-01-21 11:09:09 -08:00
tedyu
7a096ac6cb
HBASE-15073 Revert due to different opinion on usefulness
2016-01-18 17:35:18 -08:00
tedyu
53983f5b2e
HBASE-15073 Finer grained control over normalization actions for RegionNormalizer
2016-01-06 15:38:46 -08:00
stack
1098dfd918
HBASE-15023 Reenable TestShell and TestStochasticLoadBalancer
2015-12-28 13:27:42 -08:00
tedyu
a6eea24f71
HBASE-15032 hbase shell scan filter string assumes UTF-8 encoding (huaxiang sun)
2015-12-24 07:02:04 -08:00
Matteo Bertozzi
85257a2528
HBASE-15022 replication_admin.rb throws undefined method `getZooKeeperClusterKey' for ZKUtil
2015-12-21 13:21:31 -08:00
Matteo Bertozzi
2d74dcfadc
HBASE-14941 locate_region shell command
2015-12-10 13:27:15 -08:00
Enis Soztutar
e5c435d254
HBASE-14804 HBase shell's create table command ignores 'NORMALIZATION_ENABLED' attribute (Jean-Marc Spaggiari)
2015-12-08 11:13:44 -08:00
tedyu
66adeb3048
HBASE-14894 Fix misspellings of threshold in log4j.properties files for tests (Youngjoon Kim)
2015-11-28 10:10:27 -08:00
Matteo Bertozzi
599589b45b
HBASE-14863 Add missing test/resources/log4j files in hbase modules
2015-11-22 07:33:26 -08:00
Enis Soztutar
98f7dcc389
HBASE-14805 status should show the master in shell
2015-11-18 15:25:54 -08:00
Elliott Clark
7c9e173830
HBASE-14773 Fix HBase shell tests are skipped when skipping server tests.
2015-11-05 16:27:06 -08:00
Elliott Clark
2b84c40f01
HBASE-14765 Remove snappy profile
2015-11-05 10:21:14 -08:00
Enis Soztutar
b8a2caf159
HBASE-14733 Minor typo in alter_namespace.rb
2015-10-30 17:52:34 -07:00
stack
81d7d7ba7e
HBASE-14678 Experiment: Temporarily disable balancer and a few others to see if root of crashed/timedout JVMs
2015-10-22 12:33:36 -07:00
stack
719ec5f021
HBASE-14561 Disable zombie TestReplicationShell; BACKPORT
2015-10-16 08:16:02 -07:00
Dima Spivak
320e585207
HBASE-14577 HBase shell help for scan and returning a column family has a typo
...
Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
2015-10-12 13:34:26 -07:00
Mikhail Antonov
b9bfd6f7e3
HBASE-14367 Add normalization support to shell
2015-10-04 01:24:15 -07:00
Josh Elser
3ef56c7b64
HBASE-14494 Add missing commas on shell command usages
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-10-01 12:05:02 -07:00
stack
16ad5e61c8
HBASE-14510 Fix coprocessor handling of duplicate classes (Yerui Sun)
2015-09-29 15:35:44 -07:00
Stephen Yuan Jiang
56bb25e506
HBASE-14488 Procedure V2 - shell command to abort a procedure (Stephen Yuan jiang
2015-09-28 18:53:56 -07:00
Stephen Yuan Jiang
6c6d862c35
HBASE-14487 Procedure V2 - shell command to list all procedures (Stephen Yuan Jiang)
2015-09-24 20:42:55 -07:00
tedyu
d3a7222bfc
HBASE-14309 Allow load balancer to operate when there is region in transition by adding force flag
2015-08-29 17:08:40 -07:00
stack
5dcb3d85a1
HBASE-14224 Fix coprocessor handling of duplicate classes
2015-08-24 14:12:57 -07:00
anoopsjohn
22f466696a
HBASE-14214 list_labels shouldn't raise ArgumentError if no labels are defined.
2015-08-13 14:37:55 +05:30
Andrew Purtell
ba4cc6321b
HBASE-14122 Client API for determining if server side supports cell level security
2015-08-12 13:27:51 -07:00
Ashish Singhi
832a61513b
HBASE-14105 Add shell tests for Snapshot
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-08-07 10:00:57 -07:00
Sean Busbey
a45651c2cf
HBASE-14085 Update LICENSE and NOTICE files.
...
* corrects license/notice for source distribution
* adds inception year to correct copyright in generated NOTICE files for jars
* updates project names in poms to use "Apache HBase" instead of "HBase" so jar NOTICE files will be correct
* uses append-resources to include supplemental info on jars with 3rd party works in source
* adds an hbase specific resource bundle for jars that include 3rd party works for binaries
** uses supplemental-model to fill in license gaps
** uses the above and a shade plugin transformation to build proper files for shaded jars.
** uses the above and the assembly plugin to build the proper files for bin assembly
* adds a NOTICE item for things copied out of Hadoop (TODO legal-discuss)
Conflicts:
NOTICE.txt
hbase-checkstyle/pom.xml
hbase-resource-bundle/pom.xml
hbase-server/pom.xml
hbase-thrift/pom.xml
pom.xml
2015-08-05 14:52:33 -07:00
Ashish Singhi
f274796941
HBASE-14154 DFS Replication should be configurable at column family level
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
Conflicts:
hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
hbase-client/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAdmin1.java
2015-07-31 18:19:07 -07:00
Sean Busbey
9091409800
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
Conflicts:
bin/considerAsDead.sh
dev-support/rebase_all_git_branches.sh
2015-07-31 11:22:50 -07:00
Apekshit(Appy) Sharma
42a0b74cb2
HBASE-14119 Show error message instead of stack traces in hbase shell commands. (Apekshit)
2015-07-20 15:48:23 -07:00
Ashish Singhi
789d2a94b7
HBASE-8642 [Snapshot] List and delete snapshot by table
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-07-15 15:56:08 -07:00
Sean Busbey
f2f19ddb5c
HBASE-13909 update branch-1 poms to 1.3.0-SNAPSHOT
2015-06-15 22:30:56 -05:00
tedyu
4468f3ce95
HBASE-13829 Add more ThrottleType (Guanghao Zhang)
2015-06-13 06:30:26 -07:00
Lars George
c9217ba1b5
HBASE-13723 In table.rb scanners are never closed.
2015-05-28 10:15:02 +02:00
Abhishek Kumar
534c6034b8
HBASE-13746 list_replicated_tables command is not listing table in hbase shell
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-05-25 12:52:55 -07:00
stack
078a9a97c3
HBASE-5980 Scanner responses from RS should include metrics on rows/KVs filtered
2015-05-21 11:09:14 -07:00
ramkrishna
fd15bd13db
HBASE-13721 - Improve shell scan performances when using LIMIT (JMS)
2015-05-20 22:20:35 +05:30
Jonathan M Hsieh
d90523355e
HBASE-11658 Piped commands to hbase shell should return non-zero if shell command failed (Sean Busbey)
2015-05-01 17:24:55 -07:00
Andrew Purtell
0d6d87d0f8
HBASE-13550 [Shell] Support unset of a list of table attributes
2015-04-24 17:51:33 -07:00
Nick Dimiduk
cf45c8d30a
Bump pom version to 1.2.0-SNAPSHOT
2015-04-16 17:30:48 -07:00
tedyu
c031d8de23
HBASE-13205 [branch-1] Backport HBASE-11598 Add simple rpc throttling (Ashish Singhi)
2015-04-07 18:29:03 -07:00
Ashish Singhi
3c0e3981aa
HBASE-11386 Backport HBASE-12601 to all active branches other than master
...
Signed-off-by: Andrew Purtell <apurtell@apache.org>
2015-04-02 14:13:12 -07:00
Srikanth Srungarapu
1dfcbdf5e3
HBASE-13058 Hbase shell command 'scan' for non existent table shows unnecessary info for one unrelated existent table. (Abhishek Kumar)
2015-04-01 23:33:20 -07:00
Lars George
26f4c32d54
HBASE-10728 get_counter value is never used.
2015-03-30 10:32:26 +02:00
Josh Elser
b9a615e739
HBASE-13222 Add isBalancerEnabled method to Master and Admin.
...
Include some basic tests for the method on a testing cluster.
Also update master page to show an alert when balancer is disabled.
Signed-off-by: Enis Soztutar <enis@apache.org>
Conflicts:
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/RequestConverter.java
hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
2015-03-27 14:47:24 -07:00
anoopsjohn
78a55ac71a
HBASE-13006 Document visibility label support for groups. (Jerry He)
2015-03-19 09:19:44 +05:30
Josh Elser
c3b47f2251
HBASE-13236 Add addt'l lifecycle-mapping executions.
...
Adds a number of lifecycle-mapping entries which
prevent errors from showing up in Eclipse on a fresh
import of HBase. For plugins defined in the top-level
pom, the mapping is added there; otherwise, the mapping
is pushed down to the child pom.
Signed-off-by: Sean Busbey <busbey@apache.org>
2015-03-14 00:19:44 -05:00
tedyu
da9c5ac18c
HBASE-13171 Change AccessControlClient methods to accept connection object to reduce setup time (Srikanth Srungarapu)
2015-03-11 21:41:24 -07:00
Ashish Singhi
39c897e3fc
HBASE-13100 Shell command to retrieve table splits
2015-02-28 10:24:31 -06:00
zhangduo
3862b30a47
HBASE-13084 addendum disable info server in shell test
...
Signed-off-by: stack <stack@apache.org>
2015-02-27 19:59:33 -08:00
zhangduo
6331bc2afb
HBASE-13084 addendum move replication_admin_test.rb to individual test
...
Signed-off-by: stack <stack@apache.org>
Conflicts:
hbase-shell/src/test/java/org/apache/hadoop/hbase/client/TestShell.java
2015-02-27 08:18:51 -08:00
tedyu
0ff1418b32
HBASE-13112 quota.rb, security.rb and visibility_labels.rb leak connection (Ashish Singhi)
2015-02-26 21:59:20 -08:00
tedyu
ac7faf3ef7
HBASE-13111 truncate_preserve command is failing with undefined method error (Ashish Singhi)
2015-02-26 07:07:49 -08:00
zhangduo
a2123144ff
HBASE-13084 Add labels to VisibilityLabelsCache asynchronously causes TestShell flakey
...
Signed-off-by: stack <stack@apache.org>
Conflicts:
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
2015-02-24 17:06:34 -08:00
stack
f938999ef4
Revert "HBASE-13058-shell unknown table message update"
...
Wrong patch!
This reverts commit 6f81a0982a
.
2015-02-24 08:16:00 -08:00
Abhishek Kumar
6f81a0982a
HBASE-13058-shell unknown table message update
...
Signed-off-by: stack <stack@apache.org>
2015-02-23 22:46:08 -08:00
Abhishek Kumar
f67301403d
HBASE-13080 hbase shell message containing extra quote at the end of error message
...
Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
2015-02-23 10:30:34 +01:00
tedyu
9d29f3c4f1
HBASE-13057 Provide client utility to easily enable and disable table replication (Ashish Singhi)
2015-02-20 10:27:20 -08:00
Bhupendra
b131b15ae4
HBASE-13049 wal_roll ruby command doesn't work
...
Signed-off-by: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
2015-02-16 15:47:22 +01:00