This is the first time I try-to-use 中文版 to write my blog, so don ' t jeer at the mistake of my grammar and spelling.
[ERROR] c.j.b.connectionhandle-database access problem. Killing off this connection and all remaining connections in the connection pool. SQL state = HY000
And then, I found II things would cause this issue, one of the them is SELinux config is set to enforcing, the Change this config Value to Disabled and reboot the server, it seem good, but still got same error, only is not too many.
Then I review the Code of Dr. Elephant, I find out this in MySQL create table in MySQL initializing script of play Framew Ork has an issue. The index is too long and I change the index to previously, but if the URL is longer then, it gone wrong.
Create INDEX YARN_APP_RESULT_I4 on Yarn_app_result (flow_exec_id), CREATE index yarn_app_result_i5 on Yarn_app_ Result (job_def_id); create index yarn_app_result_i6 on Yarn_app_result (flow_def_id (250));
set global innodb_file_format=barracuda; set global innodb_large_prefix = on; create table yarn_app_result ( id varchar ( NOT NULL ) COMMENT ' the application id, e.g., application_1236543456321_1234567 ', name varchar ( NOT NULL ) COMMENT ' The application name ', username varchar ( NOT NULL ) COMMENT ' the user who started the application ', queue_name varchar ( ) default null comment ' The queue the application was submitted to ', start_time BIGINT UNSIGNED NOT NULL COMMENT ' the time in which application started ', finish_time BIGINT unsigned not null comment ' the time in which Application finished ', tracking_url varchar (255) NOT NULL COMMENT ' the web url that Can be used to track the application ', job_type varchar ( NOT NULL ) COMMENT ' The job type e.g, pig, hive, spark, hadoopjava ', severity tinyint (2) UNSIGNED NOT NULL COMMENT ' Aggregate severity of all the heuristics. ranges from 0 (Low) to 4 (CRITICAL) ', score Mediumint (9) UNSIGNED DEFAULT 0 COMMENT ' The application score which is the sum of heuristic scores ', workflow_ Depth tInyint (2) UNSIGNED DEFAULT 0 COMMENT ' the Application depth in the scheduled flow. depth starts from 0 ', scheduler varchar ( DEFAULT) NULL COMMENT ' the scheduler Which triggered the application ', job_name varchar (255) NOT NULL DEFAULT ' COMMENT ' the name of the job in the flow to which this app Belongs ', job_exec_id varchar (+) not null DEFAULT ' COMMENT ' a unique reference to a specific execution of the&nbSp;job/action (Job in the workflow) . this should filter all applications (Mapreduce/spark) triggered by the job for a particular execution. ', flow_exec_id varchar (255) NOT NULL DEFAULT ' COMMENT ' a unique reference to a specific flow execution. this should filter all applications fired by a particular flow execution. Note that if the scheduler Supports sub-workflows, then this id should be the super parent flow execution id that triggered the the applications and Sub-workflows. ', job_def_id varchar (+) NOT NULL DEFAULT ' COMMENT ' A unique reference to the job in the entire flow independent of the execution. This should filter all The applications (Mapreduce/spark) triggered by the job for all the historic executions of that job. ', flow_def_id varchar NOT NULL DEFAULT ' COMMENT ' a Unique reference to the entire flow independent of any execution. this should filter all the historic mr jobs belonging to the flow. note that if your scheduler supports sub-workflows, then this id should reference the super parent flow that triggered the all the jobs and sub-workflows. ', job_exec_url VARCHAR NOT NULL DEFAULT ' COMMENT ' a url to the job execution on the scheduler ', flow_exec_url varchar NOT NULL DEFAULT ' COMMENT ' A url to the flow execution on the scheduler ', job_def_url varchar () NOT NULL DEFAULT ' comment ' A url to the job definition on the scheduler ', flow_def_url varchar (+) NOT NULL DEFAULT " COMMENT ' a url to the flow definition on the Scheduler ', primary key (ID)) engine=innodb default charset=utf8 row_format=dynamic;create index yarn_app_result_i1 on yarn_app_result (finish_time); create index yarn_app_ result_i2 on yarn_app_result (username,finish_time); create index yarn_app_result_i3 on yarn_app_result (job_type,username,finish_time); CREATE INDEX YARN_APP_RESULT_I4 on yarn_app_result (flow_exec_id); create index yarn_app_result_i5 on yarn_ app_result (job_def_id);create index yarn_app_result_i6 on yarn_app_result (flow _def_id);create index yarn_app_result_i7 on yarn_app_result (start_time); create table yarn_app_heuristic_result ( id int (one) not null auto_increment comment ' The application heuristic result id ', yarn_app_result_id varchar ( NOT NULL ) COMMENT ' The application id ', heuristic_ Class varchar (255) NOT NULL COMMENT ' name of the jvm Class that implements this heuristic ', heuristic_name varchar (+) NOT NULL COMMENT ' The heuristic name ', severity tinyint (2) unsigned NOT NULL COMMENT ' The heuristic severity ranging from 0 (Low) to 4 (CRITICAL) ', score mediumint (9) UNSIGNED DEFAULT 0 COMMENT ' The heuristic score for the application. score = severity * number_of_tasks (map/reduce) where severity not in [ 0,1], otherwise score = 0 ', primary key (ID), CONSTRAINT yarn_app_heuristic_result_f1 FOREIGN KEY (yarn_app_result_id) references yarn_ app_result (ID)); create index yarn_app_heuristic_result_i1 on yarn_app_heuristic_ result (yarn_app_result_id); create index yarn_app_heuristic_result_i2 on yarn_app_ heuristic_result (Heuristic_name,severity); create table yarn_app_heuristic_result_details ( yarn_app_heuristic_result_id int (one) NOT NULL COMMENT ' The application heuristic result id ', name varchar (+) NOT NULL DEFAULT ' COMMENT ' The analysis detail entry name/key ', value varchar (255) NOT NULL DEFAULT ' comment ' The analysis detail value corresponding to the name ', details TEXT comment ' More information on analysis details. e.g, stacktrace ', primary key (yarn_app_heuristic_result_id,name), constraint yarn_app_heuristic_ result_details_f1 foreign key (yarn_app_heuristic_result_id) references yarn_app_ heuristic_result (ID)); create index yarn_app_heuristic_result_details_i1 on yarn_app_ heuristic_result_details (name);
At last I-send a pull request-to-LinkedIn on github.com ...
This article from "Practice Test Truth" blog, declined reprint!
Dr.elephant MySQL Connection error