[jira] [Created] (HIVE-21676) use a system table as an alternative proc store

2019-05-01 Thread Sergey Shelukhin (JIRA)
Sergey Shelukhin created HIVE-21676:
---

 Summary: use a system table as an alternative proc store
 Key: HIVE-21676
 URL: https://issues.apache.org/jira/browse/HIVE-21676
 Project: Hive
  Issue Type: Bug
Reporter: Sergey Shelukhin


We keep hitting these issues:
{noformat}
2019-04-30 23:41:52,164 INFO  [master/master:17000:becomeActiveMaster] 
procedure2.ProcedureExecutor: Starting 16 core workers (bigger of cpus/4 or 16) 
with max (burst) worker count=160
2019-04-30 23:41:52,171 INFO  [master/master:17000:becomeActiveMaster] 
util.FSHDFSUtils: Recover lease on dfs file 
.../MasterProcWALs/pv2-0481.log
2019-04-30 23:41:52,176 INFO  [master/master:17000:becomeActiveMaster] 
util.FSHDFSUtils: Recovered lease, attempt=0 on 
file=.../MasterProcWALs/pv2-0481.log after 5ms
2019-04-30 23:41:52,288 INFO  [master/master:17000:becomeActiveMaster] 
util.FSHDFSUtils: Recover lease on dfs file 
.../MasterProcWALs/pv2-0482.log
2019-04-30 23:41:52,289 INFO  [master/master:17000:becomeActiveMaster] 
util.FSHDFSUtils: Recovered lease, attempt=0 on 
file=.../MasterProcWALs/pv2-0482.log after 1ms
2019-04-30 23:41:52,373 INFO  [master/master:17000:becomeActiveMaster] 
wal.WALProcedureStore: Rolled new Procedure Store WAL, id=483
2019-04-30 23:41:52,375 INFO  [master/master:17000:becomeActiveMaster] 
procedure2.ProcedureExecutor: Recovered WALProcedureStore lease in 206msec
2019-04-30 23:41:52,782 INFO  [master/master:17000:becomeActiveMaster] 
wal.ProcedureWALFormatReader: Read 1556 entries in 
.../MasterProcWALs/pv2-0482.log
2019-04-30 23:41:55,370 INFO  [master/master:17000:becomeActiveMaster] 
wal.ProcedureWALFormatReader: Read 28113 entries in 
.../MasterProcWALs/pv2-0481.log
2019-04-30 23:41:55,384 ERROR [master/master:17000:becomeActiveMaster] 
wal.WALProcedureTree: Missing stack id 166, max stack id is 181, root procedure 
is Procedure(pid=289380, ppid=-1, 
class=org.apache.hadoop.hbase.master.procedure.ServerCrashProcedure)
2019-04-30 23:41:55,384 ERROR [master/master:17000:becomeActiveMaster] 
wal.WALProcedureTree: Missing stack id 178, max stack id is 181, root procedure 
is Procedure(pid=289380, ppid=-1, 
class=org.apache.hadoop.hbase.master.procedure.ServerCrashProcedure)
2019-04-30 23:41:55,389 ERROR [master/master:17000:becomeActiveMaster] 
wal.WALProcedureTree: Missing stack id 359, max stack id is 360, root procedure 
is Procedure(pid=285640, ppid=-1, 
class=org.apache.hadoop.hbase.master.procedure.ServerCrashProcedure)
{noformat}

After which the procedure(s) is/are lost and cluster is stuck permanently.
There were no errors writing these files in the log, and no issues reading them 
from HDFS, so it's purely a data loss issue in the structure. 

I was thinking about debugging it, but on 2nd though what we are trying to 
store PB state by key.
Coincidentally, we have an "HBase" facility that we already deploy, that does 
just that... and it even has a WAL implementation. I don't know why we cannot 
use it for procedure state and have to invent another complex implementation of 
a KV store inside a KV store.
In all/most cases, we don't even support rollback and use the latest state, but 
if we need multiple versions, this HBase product even supports that! 
I think we should add a hbase:proc table that would be maintained similar to 
meta. The latter part esp. given the existing code for meta should be much more 
simple than a separate store impl.
This should be pluggable and optional via ProcStore interface (made more 
abstract as relevant - update state, scan state, get)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (HIVE-21675) CREATE VIEW IF NOT EXISTS broken

2019-05-01 Thread Todd Lipcon (JIRA)
Todd Lipcon created HIVE-21675:
--

 Summary: CREATE VIEW IF NOT EXISTS broken
 Key: HIVE-21675
 URL: https://issues.apache.org/jira/browse/HIVE-21675
 Project: Hive
  Issue Type: Bug
Affects Versions: 3.1.1
Reporter: Todd Lipcon


CREATE VIEW IF NOT EXISTS returns an error rather than "OK" if the view already 
exists. This is a regression from Hive 2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (HIVE-21674) Policy Condition Evaluators existing and newly created should work in both policy level and policy item level

2019-05-01 Thread Ramesh Mani (JIRA)
Ramesh Mani created HIVE-21674:
--

 Summary: Policy Condition Evaluators existing and newly created 
should work in both policy level and policy item level
 Key: HIVE-21674
 URL: https://issues.apache.org/jira/browse/HIVE-21674
 Project: Hive
  Issue Type: Bug
Reporter: Ramesh Mani


Policy Condition Evaluators existing and newly created should work in both 
policy level and policy item level.
With the introduction of Policy Leven condition in 
https://issues.apache.org/jira/browse/RANGER-2354, now can set policy 
conditions at  Policy level also. But this needs a new variable 
"policyCondition" to be referred if some one wants to created a new policy 
level condition evaluator 
(https://cwiki.apache.org/confluence/display/RANGER/Dynamic+Policy+Hooks+in+Ranger+-+Configure+and+Use)
 . Existing policy level condition also needs to be duplicated to have this new 
"policyCondition" to be referred. Instead on this its good to use the same 
"condition" variable. This will allow anyone to use the existing policy 
condition evaluator to be used in policy level or policy item level. Same is 
the case with newly created custom policy condition evaluators



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)