Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError #4

Open
karlarao opened this issue Feb 1, 2018 · 2 comments
Open

AssertionError #4

karlarao opened this issue Feb 1, 2018 · 2 comments

Comments

@karlarao
Copy link

karlarao commented Feb 1, 2018

I'm getting the following error using the HDP sandbox version 2.5

python --version
Python 2.7.5
hive --version
Hive 1.2.1000.2.5.0.0-1245
hadoop version
Hadoop 2.7.3.2.5.0.0-1245
[root@localhost lipwig-master]# python lipwig.py explain.json > explain.dot
Traceback (most recent call last):
  File "lipwig.py", line 252, in <module>
    main(sys.argv[1:])
  File "lipwig.py", line 248, in main
    p = [HivePlan(f, json.load(open(f))) for f in argv]
  File "lipwig.py", line 230, in __init__
    assert len(stages) == 1
AssertionError

Here's the explain.json file

{"STAGE DEPENDENCIES":{"Stage-0":{"ROOT STAGE":"TRUE"}},"STAGE PLANS":{"Stage-0":{"Fetch Operator":{"Processor Tree:":{"TableScan":{"alias:":"customer","children":{"Select Operator":{"children":{"Limit":{"children":{"ListSink":{}},"Number of rows:":"2"}},"outputColumnNames:":["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28"],"expressions:":"customer_id (type: int), account_num (type: bigint), lname (type: varchar(30)), fname (type: varchar(30)), mi (type: varchar(30)), address1 (type: varchar(30)), address2 (type: varchar(30)), address3 (type: varchar(30)), address4 (type: varchar(30)), city (type: varchar(30)), state_province (type: varchar(30)), postal_code (type: varchar(30)), country (type: varchar(30)), customer_region_id (type: int), phone1 (type: varchar(30)), phone2 (type: varchar(30)), birthdate (type: date), marital_status (type: varchar(30)), yearly_income (type: varchar(30)), gender (type: varchar(30)), total_children (type: smallint), num_children_at_home (type: smallint), education (type: varchar(30)), date_accnt_opened (type: date), member_card (type: varchar(30)), occupation (type: varchar(30)), houseowner (type: varchar(30)), num_cars_owned (type: int), fullname (type: varchar(60))"}}}},"limit:":"2"}}}}

.

@bjernigan
Copy link

@karlarao I came across this same issue, but it looks like it was because I'm using MR and not Tez.

@yaravind
Copy link

Any plans to have this updated for Tez?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants