# Hive - es.update.script property value more than 4000 Chars

**URL:** <https://discuss.elastic.co/t/hive-es-update-script-property-value-more-than-4000-chars/101240>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 20, 2017, 9:43pm UTC](https://discuss.elastic.co/t/hive-es-update-script-property-value-more-than-4000-chars/101240 "2017-09-20T21:43:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinjose](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sachinjose/32/58679_2.png) [@sachinjose](https://discuss.elastic.co/u/sachinjose)\
**Post date:** [September 20, 2017, 9:43pm UTC](https://discuss.elastic.co/t/hive-es-update-script-property-value-more-than-4000-chars/101240/1 "2017-09-20T21:43:00Z")

</div>

In one of the use cases, Length of Hive TBLPROPERTIES - es.update.script property value is more than 4000 characters, so hive query is failing with the below error message in the initial table creation step.

As a workaround, we had to bump up hive metastore table - `TABLE_PARAMS` column size `PARAM_VALUE` to 10000. Is there a permanent solution for permanent solution for this issue ?  
Options like loading es.update.script file from HDFS ?

**Hive Create Table Snippet**

> STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'  
> TBLPROPERTIES('es.update.script':''

**Error Msg**

> INSERT INTO "TABLE\_PARAMS" ("PARAM\_VALUE","TBL\_ID","PARAM\_KEY") VALUES (?,?,?) [10:17]  
> Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(4000

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [October 4, 2017, 3:32am UTC](https://discuss.elastic.co/t/hive-es-update-script-property-value-more-than-4000-chars/101240/2 "2017-10-04T03:32:11Z")

</div>

Coming in 6.0 we are [introducing support for file-based and stored scripts](https://github.com/elastic/elasticsearch-hadoop/commit/c47c54a923d4760eed671f81b0d66bbb40c791ce). This should definitely clear up your issue. As a note, the 6.0 version of the connector will be backwards compatible with previous ES versions, so you should be able to upgrade ES-Hadoop without much disruption to take advantage of this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 1, 2017, 3:32am UTC](https://discuss.elastic.co/t/hive-es-update-script-property-value-more-than-4000-chars/101240/3 "2017-11-01T03:32:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
