Re: [ANNOUNCE] New HBase committer Jingyun Tian

2018-11-13 Thread Ted Yu
Congratulations, Jingyun! Original message From: Srinivas Reddy Date: 11/13/18 12:46 AM (GMT-08:00) To: d...@hbase.apache.org Cc: Hbase-User Subject: Re: [ANNOUNCE] New HBase committer Jingyun Tian Congratulations Jingyun-Srinivas- Typed on tiny keys. pls ignore

Re: [ANNOUNCE] New Committer: Balazs Meszaros

2018-10-11 Thread Ted Yu
Congratulations, Balazs. On Thu, Oct 11, 2018 at 12:50 PM Mike Drob wrote: > Welcome, Balazs! > > On Thu, Oct 11, 2018 at 2:49 PM Sean Busbey wrote: > > > On behalf of the HBase PMC, I'm pleased to announce that Balazs > > Meszaros has accepted our invitation to become an HBase committer. > >

Re: Can MOB be enabled for existing table?

2018-09-21 Thread Ted Yu
bq. region server crashes after ttl archiver runs This is the first time I hear of such problem. Can you give us more information (stack trace, server log snippet for that period) ? Thanks On Thu, Sep 20, 2018 at 11:14 PM meirav.malka wrote: > Hi,Since you probably don't have enough space for

Re: Stripe Compactions Stability

2018-09-17 Thread Ted Yu
Hi, To my knowledge, stripe compaction has not seen patches for a few years. Have you looked at : http://hbase.apache.org/book.html#ops.date.tiered If the above doesn't suit your needs, can you tell us more about your use case ? Thanks On Mon, Sep 17, 2018 at 11:39 AM Austin Heyne wrote: >

Re: Extremely high CPU usage after upgrading to Hbase 1.4.4

2018-09-10 Thread Ted Yu
frequency of reads/writes we are making, because the > high CPU usage persisted when the number of operations went down. > > Thank you, > Srinidhi > > On 9/8/18, 9:44 AM, "Ted Yu" wrote: > > Srinidhi : > Do you know the average / highest number of Column

Re: Improving on MTTR of cluster [Hbase - 1.1.13]

2018-09-10 Thread Ted Yu
For the second config you mentioned, hbase.master.distributed.log.replay, see http://hbase.apache.org/book.html#upgrade2.0.distributed.log.replay FYI On Mon, Sep 10, 2018 at 8:52 AM sahil aggarwal wrote: > Hi, > > My cluster has around 50k regions and 130 RS. In case of unclean shutdown, > the

Re: Extremely high CPU usage after upgrading to Hbase 1.4.4

2018-09-08 Thread Ted Yu
Srinidhi : Do you know the average / highest number of ColumnPrefixFilter's in the FilterList ? Thanks On Fri, Sep 7, 2018 at 10:00 PM Ted Yu wrote: > Thanks for detailed background information. > > I assume your code has done de-dup for the filters contained in > FilterListWithOR

Re: Extremely high CPU usage after upgrading to Hbase 1.4.4

2018-09-07 Thread Ted Yu
- qualifier length This variant doesn't allocate (new) Cell / KeyValue. This way, FilterListWithOR#shouldPassCurrentCellToFilter can use the returned tuple for comparison. FYI On Fri, Sep 7, 2018 at 10:00 PM Ted Yu wrote: > Thanks for detailed background information. > > I assume your

Re: Extremely high CPU usage after upgrading to Hbase 1.4.4

2018-09-07 Thread Ted Yu
is so that we don’t need > to know the ‘distinguisher’ part of the record when writing the actual > query, because the distinguisher is only relevant in certain circumstances. > > Let me know if this is the information about our query pattern that you > were looking for and if there is anythi

Re: Extremely high CPU usage after upgrading to Hbase 1.4.4

2018-09-06 Thread Ted Yu
>From the stack trace, ColumnPrefixFilter is used during scan. Can you illustrate how various filters are formed thru FilterListWithOR ? It would be easier for other people to reproduce the problem given your query pattern. Cheers On Thu, Sep 6, 2018 at 11:43 AM Srinidhi Muppalla wrote: > Hi

Re: a table is neither disable or enable

2018-08-29 Thread Ted Yu
ly? > > From the "Procedure" tab of the hbase ui, I see the "disable" is still > > running. > > > > Thanks. > > > > Antonio. > > > > On Wed, Aug 29, 2018 at 3:31 PM Ted Yu wrote: > > > >> The 'missing table descript

Re: a table is neither disable or enable

2018-08-29 Thread Ted Yu
> > [AM.ZK.Worker-pool2-t6552] master.RegionStates: Failed to open/close > ba912582f295f7ac0b83e7e419351602 set to FAILED_OPEN" > > > The version of hbase is 1.3.1 > > > Thanks. > > > Antonio. > > On Wed, Aug 29, 2018 at 2:28 PM Ted Yu wrote: >

Re: a table is neither disable or enable

2018-08-29 Thread Ted Yu
Do you have access to master / region logs for when FAILED_OPEN state was noticed ? There should be some hint there as to why some region couldn't open. The length of table DDL is related to number of regions the table has. But the length should be less related to data amount. Which version of

Re: question on reducing number of versions

2018-08-26 Thread Ted Yu
This depends on how far down you revise the max versions for table t2. If your data normally only reaches 15000 versions and you lower max versions to ~15000, there wouldn't be much saving. FYI On Sun, Aug 26, 2018 at 3:52 PM Antonio Si wrote: > Thanks Anil. > > We are using hbase on s3. Yes,

Re: time out when running CellCounter

2018-08-25 Thread Ted Yu
, Aug 25, 2018 at 2:49 PM Antonio Si wrote: > Thanks Ted. > > I try passing "-Dhbase.client.scanner.timeout.period=180" when I invoke > CellCounter, but it is still saying timeout after 600 sec. > > Thanks. > > Antonio. > > On Sat, Aug 25, 2018 at 2:09 PM T

Re: time out when running CellCounter

2018-08-25 Thread Ted Yu
It seems CellCounter doesn't have such (commandline) option. You can specify, e.g. scan timerange, scan max versions, start row, stop row, etc. so that individual run has shorter runtime. Cheers On Sat, Aug 25, 2018 at 9:35 AM Antonio Si wrote: > Hi, > > When I run

Re: how to get rowkey with largest number of versions

2018-08-22 Thread Ted Yu
Antonio: Please take a look at CellCounter under hbase-mapreduce module which may be of use to you: * 6. Total number of versions of each qualifier. Please note that the max versions may fluctuate depending on when major compaction kicks in. FYI On Wed, Aug 22, 2018 at 11:53 AM Ankit

Re: build hbase2.1 without htrace-core-3.1.0-incubating.jar

2018-08-20 Thread Ted Yu
even said "HBase 2.1" in the original email. > > > > > On Mon, Aug 20, 2018 at 2:17 PM, Ted Yu wrote: > > Looking at the dependency tree output, I see the following: > > > > [INFO] org.apache.hbase:hbase-server:jar:2.0.0.3.0.0.0-SNAPSHOT > > ..

Re: build hbase2.1 without htrace-core-3.1.0-incubating.jar

2018-08-20 Thread Ted Yu
Looking at the dependency tree output, I see the following: [INFO] org.apache.hbase:hbase-server:jar:2.0.0.3.0.0.0-SNAPSHOT ... [INFO] +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile FYI On Mon, Aug 20, 2018 at 8:10 AM Sean Busbey wrote: > neither Hadoop 3.1 nor HBase 2.1 use

Re: difference - filterlist with rowfilters vs multiget

2018-08-15 Thread Ted Yu
For the first code snippet, it seems start row / stop row can be specified to narrow the range of scan. For your last question: bq. all the filters in the filterList are RowFilters ... The filter list currently is not doing optimization even if all filters in the list are RowFilters. Cheers

Re: HBase 2.1.0 - RUNNABLE:SERVER_CRASH_START; ServerCrashProcedure

2018-08-14 Thread Ted Yu
jcl: I can see that DEBUG log wasn't turned on. Can you set log4j to DEBUG level and see if there is more information ? Cheers On Tue, Aug 14, 2018 at 6:56 AM Allan Yang wrote: > Those log is not enough to locate the problem. > Best Regards > Allan Yang > > > jcl <515951...@163.com>

Re: HDP3.0: failed to map segment from shared object: Operation not permitted

2018-08-13 Thread Ted Yu
Since you are using a vendor's distro, can you post on their user group ? Cheers Original message From: Lian Jiang Date: 8/13/18 4:03 PM (GMT-08:00) To: user@hbase.apache.org Subject: HDP3.0: failed to map segment from shared object: Operation not permitted Hi, I installed

Re: Adding same row filter multiple times

2018-07-23 Thread Ted Yu
more sense? Do you think creating a > bug(or a feature request) for this, makes sense? > > Thanks & Regards > Biplob Biswas > > > On Fri, Jul 20, 2018 at 6:31 PM Ted Yu wrote: > > > Assuming your filter list uses MUST_PASS_ONE operator, the recurring key > > wo

Re: Compactions after bulk load

2018-07-20 Thread Ted Yu
Have you checked the output from bulk load and see if there were lines in the following form (from LoadIncrementalHFiles#splitStoreFile) ? LOG.info("HFile at " + hfilePath + " no longer fits inside a single " + "region. Splitting..."); In the server log, you should see log in the following

Re: Adding same row filter multiple times

2018-07-20 Thread Ted Yu
is HBase doing in that > circumstance > > Thanks & Regards > Biplob Biswas > > > On Fri, Jul 20, 2018 at 4:12 PM Ted Yu wrote: > > > Did you mean chaining the same row filter 'n' times using FilterList ? > > Is the row filter from hbase (RowFilter) ? > > What o

Re: Adding same row filter multiple times

2018-07-20 Thread Ted Yu
Did you mean chaining the same row filter 'n' times using FilterList ? Is the row filter from hbase (RowFilter) ? What operator do you use (MUST_PASS_ALL or MUST_PASS_ONE) ? For second question, I wonder how filter set would handle the constituent filters differently from how FilterList handles

Re: issue while reading data from hbase

2018-07-13 Thread Ted Yu
Putting dev@ to bcc. Which hbase-spark connector are you using ? What's the hbase release in your deployment ? bq. some of the columns in dataframe becomes null Is it possible to characterize what type of columns become null ? Earlier you said one column has xml data. Did you mean this column

Re: I am a subscribe please add me thanks

2018-07-11 Thread Ted Yu
Please see for subscription information: http://hbase.apache.org/mail-lists.html On Wed, Jul 11, 2018 at 4:19 AM bill.zhou wrote: > I am a subscriber please add me thanks > >

Re: HBase scan with setBatch for more than 1 column family

2018-07-02 Thread Ted Yu
Please see the following two constants defined in TableInputFormat : /** Column Family to Scan */ public static final String SCAN_COLUMN_FAMILY = "hbase.mapreduce.scan.column.family"; /** Space delimited list of columns and column families to scan. */ public static final String

Re: Hbase hbase-2.0.1, region server does not start on Hadoop 3.1

2018-06-30 Thread Ted Yu
no case be liable for any monetary damages arising from > such loss, damage or destruction. > > > > > On Sat, 30 Jun 2018 at 23:36, Ted Yu wrote: > > > Please read : > > > > http://hbase.apache.org/book.html#wal.providers > > > > On Sat, Jun 30, 2018 at 3:

Re: Hbase hbase-2.0.1, region server does not start on Hadoop 3.1

2018-06-30 Thread Ted Yu
case be liable for any monetary damages arising from > such loss, damage or destruction. > > > > > On Sat, 30 Jun 2018 at 23:25, Ted Yu wrote: > > > Do you plan to deploy onto hadoop 3.1.x ? > > > > If so, you'd better build against hadoop 3.1.x yourself. > > You

Re: Hbase hbase-2.0.1, region server does not start on Hadoop 3.1

2018-06-30 Thread Ted Yu
l responsibility for any > loss, damage or destruction of data or any other property which may arise > from relying on this email's technical content is explicitly disclaimed. > The author will in no case be liable for any monetary damages arising from > such loss, damage or destruction.

Re: Hbase hbase-2.0.1, region server does not start on Hadoop 3.1

2018-06-30 Thread Ted Yu
ta or any other property which may arise > from relying on this email's technical content is explicitly disclaimed. > The author will in no case be liable for any monetary damages arising from > such loss, damage or destruction. > > > > > On Sat, 30 Jun 2018 at 22:52, Ted Yu

Re: Hbase hbase-2.0.1, region server does not start on Hadoop 3.1

2018-06-30 Thread Ted Yu
Which hadoop release was the 2.0.1 built against ? In order to build hbase 2 against hadoop 3.0.1+ / 3.1.0+, you will need HBASE-20244. FYI On Sat, Jun 30, 2018 at 2:34 PM, Mich Talebzadeh wrote: > I am using the following hbase-site.xml > > > > hbase.rootdir >

Re: Eclipse and hbase-server version 2.0.1- bad imports

2018-06-22 Thread Ted Yu
I already explained which jars contain the other two classes. Better approach is to let 'mvn eclipse:eclipse' generate the dependencies for you. bq. I don't have in .m2 directory Have you looked under ~/.m2/repository ? Cheers On Fri, Jun 22, 2018 at 10:27 AM, Andrzej wrote: > W dniu 22.06.2018 o

Re: Eclipse and hbase-server version 2.0.1- bad imports

2018-06-22 Thread Ted Yu
$ jar tvf ~/.m2/repository/org/apache/hadoop/hadoop-mapreduce-client-jobclient/3.0.0/hadoop-mapreduce-client-jobclient-3.0.0-tests.jar | grep MiniMRCluster 1863 Fri Dec 08 11:31:44 PST 2017 org/apache/hadoop/mapred/ClusterMapReduceTestCase$ConfigurableMiniMRCluster.class 9947 Fri Dec 08

Re: Bulk Load is pulling files locally with same FS and validation disabled.

2018-06-21 Thread Ted Yu
Since S3FileSystem is not taken into account in FSHDFSUtils#isSameHdfs, we need to add more code to avoid the overhead. Can you log a JIRA with what you discovered ? Thanks On Thu, Jun 21, 2018 at 2:08 PM, Austin Heyne wrote: > Hi again, > > I've been doing more digging into this and I've

Re: I am searching Java examples for HBase 2.0.0

2018-06-21 Thread Ted Yu
See code HBaseTestingUtility : public Connection getConnection() throws IOException { if (this.connection == null) { this.connection = ConnectionFactory.createConnection(this.conf); Once you have the connection, you can call: this.hbaseAdmin = (HBaseAdmin)

Re: Alternative to native client c++

2018-06-21 Thread Ted Yu
I executed the following commands: mvn clean mvn compile There was no error. Andrzej: Can you tell us which mvn / Java versions you use ? I use the following: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=812M; support was removed in 8.0 Apache Maven 3.5.2

Re: Native client c++

2018-06-19 Thread Ted Yu
Please use HBASE-14850 branch which works with hbase 2.0 Cheers On Tue, Jun 19, 2018 at 7:30 AM, Andrzej wrote: > I have written previous my library based on native_client sources in any > branch. Those worked with HBase 1.3 but now not works with HBase 2.0 > I again want compile my library

Re: Odd cell result

2018-06-11 Thread Ted Yu
9, 2018 at 8:48 AM, Kang Minwoo > wrote: > > > 1) I am using just InputFormat. (I do not know it is the right answer to > > the question.) > > > > 2) code snippet > > > > ``` > > val rdd = sc.newAPIHadoopFile(...) > > rdd.count() > > ``` > > >

Re: Odd cell result

2018-06-08 Thread Ted Yu
Which connector do you use for Spark 2.1.2 ? Is there any code snippet which may reproduce what you experienced ? Which hbase release are you using ? Thanks On Fri, Jun 8, 2018 at 1:50 AM, Kang Minwoo wrote: > Hello, Users > > I recently met an unusual situation. > That is the cell result

Re: [ANNOUNCE] New HBase committer Guangxu Cheng

2018-06-04 Thread Ted Yu
Congratulations, Guangxu! Original message From: "张铎(Duo Zhang)" Date: 6/4/18 12:00 AM (GMT-08:00) To: HBase Dev List , hbase-user Subject: [ANNOUNCE] New HBase committer Guangxu Cheng On behalf of the Apache HBase PMC, I am pleased to announce that Guangxu Cheng has

Re: Incremental snapshot export

2018-05-29 Thread Ted Yu
yone suggest me the best way to export/import entire table from > source cluster to destination cluster (its live system) > > Thanks > Manjeet singh > > On Thu, 19 Jan 2017, 06:31 Neelesh, wrote: > > > Thanks Ted! > > > > On Wed, Jan 18, 2017 at 9:11 AM, Ted

Re: MOB integration

2018-05-19 Thread Ted Yu
between the release you use and hbase 2.0 (which I used to generate the logs I quoted). On Sat, May 19, 2018 at 11:29 AM, Nicolas Paris <nipari...@gmail.com> wrote: > 2018-05-19 20:08 GMT+02:00 Ted Yu <yuzhih...@gmail.com>: > > > Mob store file is renamed from /apps/hbase/

Re: MOB integration

2018-05-19 Thread Ted Yu
ld this confirm the mob flushing process wouldn't be activated ? > > > > 2018-05-19 18:38 GMT+02:00 Ted Yu <yuzhih...@gmail.com>: > > > If you have a chance to look at region server log, you would see some > line > > such as the following: > > > > 2018-0

Re: MOB integration

2018-05-19 Thread Ted Yu
beeing sure the data is actually stored as MOB (and not > as traditional binary) > > Thanks > > > 2018-05-19 15:59 GMT+02:00 Ted Yu <yuzhih...@gmail.com>: > > > bq. look into hdfs hbase/data/mlob > > > > Is 'mlob' name of your table ? > > > > bq. nearly empty folder

Re: MOB integration

2018-05-19 Thread Ted Yu
bq. look into hdfs hbase/data/mlob Is 'mlob' name of your table ? bq. nearly empty folder Here is listing under a one region table: drwxr-xr-x - hbase hdfs 0 2018-05-16 23:51 /apps/hbase/data/data/default/atlas_janus/.tabledesc drwxr-xr-x - hbase hdfs 0 2018-05-16 23:51

Re: How to improve HBase read performance.

2018-05-16 Thread Ted Yu
bq. store a lot of logs in HBase Kang: Can you tell us a bit more about how you store (and access) the log(s) - size of each log, whether log is encoded in hbase ? ORC is columnar format while hbase uses different format. Thanks On Wed, May 16, 2018 at 6:41 AM, Marcell Ortutay

Re: Visibility auths only visible to hbase user

2018-05-06 Thread Ted Yu
tioned, I tried this with HDP and a copy downloaded from > hbase.apache.org which is why I'm scratching my head on this... > > Thanks, > > Mike > > On Sun, May 6, 2018 at 10:58 AM Ted Yu <yuzhih...@gmail.com> wrote: > > > Please use vendor forum for v

Re: Visibility auths only visible to hbase user

2018-05-06 Thread Ted Yu
Please use vendor forum for vendor specific question(s). To my knowledge, this feature works in Apache hbase releases. Cheers On Sun, May 6, 2018 at 7:55 AM, Mike Thomsen wrote: > I've tried this in the HDP docker sandbox and outside that with a basic > installation of

Re: [HELP] on AWS EC2, responseTooSlow and rollback when dropping a table with a lot of regions

2018-05-04 Thread Ted Yu
For #2, the reason was: state=ROLLEDBACK exec-time=1mins,59.108sec exception=org.apache.hadoop.hbase.TableNotFoundException: mytable For #3, 179108 corresponded with '1mins,59.108sec' shown above which was the processing time (> 10,000ms) I think you only posted part of the master log, right ?

Re: hbase scan with column family filter - limit results per column prefix

2018-05-01 Thread Ted Yu
>From your description, you can combine ColumnPrefixFilter with PageFilter (thru FilterList). FYI On Tue, May 1, 2018 at 6:06 AM, mrmiroslav wrote: > I'd like to perform Get / Scan with java client. > > In a given column family I'd like to limit the number of results

Re: Should Taking A Snapshot Work Even If Balancer Is Moving A Few Regions Around?

2018-03-21 Thread Ted Yu
Looking at hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java in branch-1.4 : boolean[] setSplitOrMergeEnabled(final boolean enabled, final boolean synchronous, final MasterSwitchType... switchTypes) throws IOException; boolean

Re: Balance Regions Faster

2018-03-20 Thread Ted Yu
Cheers On Tue, Mar 20, 2018 at 6:11 PM, Ted Yu <yuzhih...@gmail.com> wrote: > Please consider tuning the following parameters of stochastic load > balancer : > > "hbase.master.balancer.stochastic.maxRunningTime" > > default value is 30 seconds. It control

Re: Balance Regions Faster

2018-03-20 Thread Ted Yu
Please consider tuning the following parameters of stochastic load balancer : "hbase.master.balancer.stochastic.maxRunningTime" default value is 30 seconds. It controls the duration of runtime for each balanceCluster() call. "hbase.balancer.period" default is 300 seconds. It controls the

Re: TableSnapshotInputFormat Behavior In HBase 1.4.0

2018-03-12 Thread Ted Yu
Saad: I encourage you to open an HBase JIRA outlining your use case and the config knobs you added through a patch. We can see the details for each config and make recommendation accordingly. Thanks On Mon, Mar 12, 2018 at 8:43 AM, Saad Mufti wrote: > I have create a

Re: MultipleColumnPrefixFilter issues with SingleColumnValueFilter

2018-03-02 Thread Ted Yu
I looked at git log for MultipleColumnPrefixFilter - there has been no more fix since 1.2.0 Can you reproduce what you observed using a unit test ? It would be easier to understand the scenario through unit test. Cheers On Thu, Mar 1, 2018 at 9:57 PM, Vikash Agarwal

Re: How to get bulk delete [Hbase1.2.0]

2018-03-02 Thread Ted Yu
For #2, BulkDeleteEndpoint still exists - in hbase-examples branch. ./hbase-examples/src/main/java/org/apache/hadoop/hbase/coprocessor/example/BulkDeleteEndpoint.java On Thu, Mar 1, 2018 at 10:02 PM, Vikash Agarwal wrote: > Hi Team, > > I am looking for a bulk delete

Re: Bucket Cache Failure In HBase 1.3.1

2018-02-28 Thread Ted Yu
the open source versions. > > Cheers. > > > Saad > > > On Sun, Feb 25, 2018 at 11:10 AM, Ted Yu <yuzhih...@gmail.com> wrote: > > > Here is related code for disabling bucket cache: > > > > if (this.ioErro

Re: How Long Will HBase Hold A Row Write Lock?

2018-02-28 Thread Ted Yu
bq. timing out trying to obtain write locks on rows in that region. Can you confirm that the region under contention was the one being major compacted ? Can you pastebin thread dump so that we can have better idea of the scenario ? For the region being compacted, how long would the compaction

Re: Incrementally load HFiles outside of MR/Spark

2018-02-25 Thread Ted Yu
You can refer to HFilePerformanceEvaluation where creation of Writer is demonstrated: writer = HFile.getWriterFactoryNoCache(conf) .withPath(fs, mf) .withFileContext(hFileContext) .withComparator(CellComparator.getInstance()) .create(); Cheers

Re: Bucket Cache Failure In HBase 1.3.1

2018-02-25 Thread Ted Yu
Here is related code for disabling bucket cache: if (this.ioErrorStartTime > 0) { if (cacheEnabled && (now - ioErrorStartTime) > this. ioErrorsTolerationDuration) { LOG.error("IO errors duration time has exceeded " + ioErrorsTolerationDuration + "ms, disabling

Re: New installation of HBase ignoring cell visibility (even though it's active)

2018-02-24 Thread Ted Yu
o integrate visibility label support. > > Thanks, > > Mike > > On Sat, Feb 24, 2018 at 10:51 AM, Ted Yu <yuzhih...@gmail.com> wrote: > > > I noted that SIMPLE_AUTHENTICATION was returned. > > Here is related code for getSecurityCapabilities(): > > > >

Re: New installation of HBase ignoring cell visibility (even though it's active)

2018-02-24 Thread Ted Yu
I noted that SIMPLE_AUTHENTICATION was returned. Here is related code for getSecurityCapabilities(): if (User.isHBaseSecurityEnabled(master.getConfiguration())) { capabilities.add(SecurityCapabilitiesResponse.Capability. SECURE_AUTHENTICATION); } else {

Re: HBaseTestingUtility with visibility labels enabled

2018-02-22 Thread Ted Yu
labels table is created by VisibilityController#postStartMaster(). You can add the following call in the @BeforeClass method: TEST_UTIL.waitTableEnabled(LABELS_TABLE_NAME.getName(), 5); See TestVisibilityLabelsWithACL for complete example. On Thu, Feb 22, 2018 at 12:07 PM, Mike

Re: How to recover a table

2018-02-22 Thread Ted Yu
It seems there were 3 files on s3 (they're all on the same line). If possible, can you pastebin parts of master log which were related to the table ? That may give us more clue. On Thu, Feb 22, 2018 at 10:01 AM, Vikas Kanth < kanth_vi...@yahoo.co.in.invalid> wrote: > Hi Ted, > Thanks for

Re: Region not initializing in 2.0.0-beta-1

2018-02-22 Thread Ted Yu
Can you show more of the region server log ? Was the cluster started clean (without any data) ? There have been a lot of changes since 2.0.0-beta-1 was released (both in terms of correctness and performance). If possible, please deploy 2.0 SNAPSHOT for further testing. Cheers On Thu, Feb 22,

Re: How to recover a table

2018-02-21 Thread Ted Yu
For a user table, you should see the following in the table dir: drwxr-xr-x - hbase hdfs 0 2018-02-16 22:20 /apps/hbase/data/data/default/t1/.tabledesc drwxr-xr-x - hbase hdfs 0 2018-02-16 22:20 /apps/hbase/data/data/default/t1/.tmp Is the table descriptor under mytable ?

Re: Hbase integration testing

2018-02-21 Thread Ted Yu
It seems you're using sbt. Can you run this command and pastebin the output: sbt "inspect tree clean" On Wed, Feb 21, 2018 at 8:21 AM, Gauthier Feuillen wrote: > Yeah I already tested that (thanks for the help btw) > > Here are my dependencies: > > > lazy val

Re: Hbase integration testing

2018-02-21 Thread Ted Yu
HBaseTestingUtility is in hbase-server module. You can add hbase-server module with test scope. On Wed, Feb 21, 2018 at 7:07 AM, Gauthier Feuillen wrote: > Hi, > > I’d like to be able to unit test my HBase application. I see a lot of > posts using the

Re: Inconsistent rows exported/counted when looking at a set, unchanged past time frame.

2018-02-20 Thread Ted Yu
If you look at https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_rn_fixed_in_58.html#fixed_issues585 , you would see the following: HBASE-15378 - Scanner cannot handle heartbeat message with no results which fixed what you observed in previous release. FYI On Tue, Feb

Re: Query data like opentsdb

2018-02-19 Thread Ted Yu
Have you looked at FuzzyRowFilter ? Cheers On Mon, Feb 19, 2018 at 8:00 AM, kitex101 wrote: > I have key design like:byte[] rowKey = > =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(customer_id), > Bytes.toBytes(timestamp)); > customer_id and timestamp are long type. As

Re: How to get string from hbase composite key?

2018-02-19 Thread Ted Yu
PM, Ted Yu <yuzhih...@gmail.com> wrote: > It seems there are 3 components in the row key. > Assuming the 2nd and 3rd are integers, you can take a look at the > following method of Bytes: > > public static byte[] toBytes(int val) { > > which returns 4 byte lon

Re: How to get string from hbase composite key?

2018-02-17 Thread Ted Yu
It seems there are 3 components in the row key. Assuming the 2nd and 3rd are integers, you can take a look at the following method of Bytes: public static byte[] toBytes(int val) { which returns 4 byte long byte array. You can use this knowledge to decode each component of the row key. FYI

Re: MultipleColumnPrefixFilter issues with SingleColumnValueFilter

2018-02-16 Thread Ted Yu
I don't see filter[1-3] being used in the cases. Was any of them in the FilterList ? Which release of hbase are you using ? Cheers On Fri, Feb 16, 2018 at 12:36 AM, Vikash Agarwal wrote: > Hi Team, > > > Currently I am trying to use MultipleColumnPrefixFilter along

Re: [Production Impacted] Any workaround for https://issues.apache.org/jira/browse/HBASE-16464?

2018-02-10 Thread Ted Yu
erstanding, Apache projects > are supposed to encourage collaboration rather building boundaries around > vendors.("collaboration and openness" is one of the reason i like Apache > Projects) > > On Sat, Feb 10, 2018 at 10:11 AM, Ted Yu <yuzhih...@gmail.com> wrote: > &g

Re: [Production Impacted] Any workaround for https://issues.apache.org/jira/browse/HBASE-16464?

2018-02-10 Thread Ted Yu
d and cleanup oldwal directory manually? Can i also > clean up recovered.edits? > > Thanks, > Anil > > On Sat, Feb 10, 2018 at 9:37 AM, Ted Yu <yuzhih...@gmail.com> wrote: > > > Can you clarify whether /apps/hbase/data/.hbase-snapshot/.tmp/ became > > empty > >

Re: [Production Impacted] Any workaround for https://issues.apache.org/jira/browse/HBASE-16464?

2018-02-10 Thread Ted Yu
Can you clarify whether /apps/hbase/data/.hbase-snapshot/.tmp/ became empty after 2018-02-07 09:10:08 ? Do you see CorruptedSnapshotException for file outside of /apps/hbase/data/.hbase-snapshot/.tmp/ ? Cheers

Re: [Production Impacted] Any workaround for https://issues.apache.org/jira/browse/HBASE-16464?

2018-02-10 Thread Ted Yu
Please the first few review comments of HBASE-16464. You can sideline the corrupt snapshots (according to master log). You can also contact the vendor for a HOTFIX. Cheers On Sat, Feb 10, 2018 at 8:13 AM, anil gupta wrote: > Hi Folks, > > We are running HBase1.1.2. It

Re: Frequent Region Server Failures with namenode.LeaseExpiredException

2018-02-08 Thread Ted Yu
Do you use Phoenix functionality ? If not, you can try disabling the Phoenix side altogether (removing Phoenix coprocessors). 2.3.4 is really old - please upgrade to 2.6.3 You should consider asking on the vendor's community forum. Cheers On Thu, Feb 8, 2018 at 3:06 PM, anil gupta

Re: Hbase disaster recovery scenario

2018-02-07 Thread Ted Yu
The built-in hbase client doesn't support failing over automatically to DR cluster. Switching "zookeeper.quorum" should be done on client side for failover. Cheers On Wed, Feb 7, 2018 at 3:16 PM, Daniel Połaczański wrote: > Hi, > I want to configure HBase in DR

Re: WrongRegionException

2018-01-29 Thread Ted Yu
w.r.t. region split, do you verify that the new rowkey is in the same region as the rowkey from incoming Put ? If not, there is a chance that the new rowkey is in different region which is going thru split. FYI On Mon, Jan 29, 2018 at 6:40 AM, Yang Zhang wrote: > Both

Re: Hbase and Database distribution

2018-01-26 Thread Ted Yu
Have you looked at http://hbase.apache.org/book.html#rsgroup ? It is in 1.4.x release. FYI On Fri, Jan 26, 2018 at 6:06 AM, Oussema BEN LAMINE wrote: > Hello, > i am using hbase 1.1.2, i have 5 region servers already working on my > cluster. > i want to create a hbase table

Re: Coprocessor prePut

2018-01-22 Thread Ted Yu
know If > there are any method support by coprocessor context to do that. > Just like that you can call context.complete() to skip other coprocessors. > > Thanks for your advice > > 2018-01-23 13:01 GMT+08:00 Ted Yu <yuzhih...@gmail.com>: > > > Your prePut would write

Re: Coprocessor prePut

2018-01-22 Thread Ted Yu
, 2018 at 8:56 PM, Yang Zhang <zhang.yang...@gmail.com> wrote: > Yes, It is the same table. > > 2018-01-23 1:46 GMT+08:00 Ted Yu <yuzhih...@gmail.com>: > > > Can you clarify your use case ? > > > > bq. put a data into table > > > > Does your coproc

Re: Coprocessor prePut

2018-01-22 Thread Ted Yu
Can you clarify your use case ? bq. put a data into table Does your coprocessor write to the same table which receives user data ? Cheers On Mon, Jan 22, 2018 at 4:24 AM, Yang Zhang wrote: > Hello Everyone > > I am using the coprocessor and want to put

Re: How spark writes to HBASE

2018-01-22 Thread Ted Yu
AsNewHadoopApidataset) > then in this case the HFILE write of block3 would be to any of those 4 > machines and not to machine6. Is that right? Or i misunderstood? > > On Jan 22, 2018 22:27, "Ted Yu" <yuzhih...@gmail.com> wrote: > > > For case 1, HFile would be loaded int

Re: How spark writes to HBASE

2018-01-22 Thread Ted Yu
> a copy and the second replication would go to that particular region? > > On Jan 22, 2018 22:16, "Ted Yu" <yuzhih...@gmail.com> wrote: > > Which connector do you use to perform the write ? > > bq. Or spark will wisely launch an executor on that machine > &g

Re: How spark writes to HBASE

2018-01-22 Thread Ted Yu
Which connector do you use to perform the write ? bq. Or spark will wisely launch an executor on that machine I don't think that is the case. Multiple writes may be performed which would end up on different region servers. Spark won't provide the affinity described above. On Mon, Jan 22, 2018

Re: Uninitialized Message Exception thrown while getting values.

2018-01-19 Thread Ted Yu
>From the exception message, it seems some GetRequest was empty. How often did this happen ? If you can describe characteristics of the get request, that may give some clue. Can you come up with a unit test that reproduces the issue ? On Thu, Jan 18, 2018 at 11:40 PM, Karthick Ram

Re: Scan Sequence

2018-01-15 Thread Ted Yu
her way, I can search region2 first (by limit the start and > end) to get an suggest range search to client, and do this suggested range > search at the second time. This will work, but It will cost more time. > > Any suggest? > > Thanks > > 2018-01-15 23:49 GMT+08:0

Re: Scan Sequence

2018-01-15 Thread Ted Yu
bq. need region2 to search fist, because it has my own index. Looks like only some of the regions have your index. Can you tell us more about the characteristics of the region(s) where index would be present. bq. My scan will be blocked for my lock on region1, By 'my' I assume the lock is

Re: Avoiding duplicate writes

2018-01-11 Thread Ted Yu
Peter: Normally java.lang.System.nanoTime() is used for measuring duration of time. See also https://www.javacodegeeks.com/2012/02/what-is-behind-systemnanotime.html bq. the prePut co-processor is executed inside a record lock The prePut hook is called with read lock on the underlying region.

Re: Hbase hbck not working properly.

2018-01-09 Thread Ted Yu
Was hbase-site.xml on the classpath when you executed the command ? Original message From: Ravi Hemnani Date: 1/9/18 3:11 AM (GMT-08:00) To: user@hbase.apache.org Subject: Re: Hbase hbck not working properly. @Ted, I can the following command, 'sudo

Re: StackOverflowError while compaction?

2018-01-07 Thread Ted Yu
rflowError, client executed the reverse > scan. > The reverse scan occurs StackOverFlowError. > > Related issue is https://issues.apache.org/jira/browse/HBASE-14497 > > I wonder why that patch did not apply 1.2.6. > > Best regards, > Minwoo Kang > > > __

Re: StackOverflowError while compaction?

2018-01-06 Thread Ted Yu
Can you provide a bit more information ? data block encoding for the column family where this error occurred pastebin of more of the region server prior to the StackOverflowError (after redaction) release of hadoop for the hdfs cluster non-default config which may be related Thanks On Sat,

Re: Hbase hbck not working properly.

2018-01-05 Thread Ted Yu
Please run hbck as hbase superuser, normally user hbase. Cheers On Fri, Jan 5, 2018 at 4:35 AM, Ravi Hemnani wrote: > Hello all, > > I am in a fix right now where hbase hbck command is not running properly. > It is picking up incorrect rootdir in order to search for

Re: assert in hbase 1.4

2018-01-03 Thread Ted Yu
Thanks, Clément On Wed, Jan 3, 2018 at 2:54 PM, Clément Guillaume <clem...@guillaume.bzh> wrote: > Done https://issues.apache.org/jira/browse/HBASE-19700 > > 2017-12-31 8:16 GMT-08:00 Ted Yu <yuzhih...@gmail.com>: > >> Clément: >> Since you have reproduced the

Re: Delete a CF paramter?

2018-01-01 Thread Ted Yu
true', BLOCKSIZE => '65536', > *METADATA > => {'ENCODE_ON_DISK' => 'true'}*} > > If I want to remove the METADATA parameter for the '@' Column Familiy... > How do I do? > > 2018-01-01 11:49 GMT-05:00 Ted Yu <yuzhih...@gmail.com>: > > > Not sure

  1   2   3   4   5   6   7   8   9   10   >