# Number of shards cannot be increased

**URL:** <https://community.cratedb.com/t/number-of-shards-cannot-be-increased/129>\
**Category:** SQL\
**Created:** [January 23, 2019, 8:34am UTC](https://community.cratedb.com/t/number-of-shards-cannot-be-increased/129 "2019-01-23T08:34:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/roman/32/36_2.png) [@roman](https://community.cratedb.com/u/roman)\
**Post date:** [January 23, 2019, 8:34am UTC](https://community.cratedb.com/t/number-of-shards-cannot-be-increased/129/1 "2019-01-23T08:34:19Z")

</div>

Hey! I can’t seems to increase number of shards (from your docs)

SQLActionException: 400 Bad Request 4000 SQLParseException: Invalid property “number\_of\_shards” passed to [ALTER | CREATE] TABLE statement  
at io.crate.exceptions.SQLExceptions.esToCrateException(SQLExceptions.java:183)  
at io.crate.exceptions.SQLExceptions.createSQLActionException(SQLExceptions.java:124)  
at io.crate.action.sql.Session.bind(Session.java:304)  
at io.crate.rest.action.SqlHttpHandler.executeSimpleRequest(SqlHttpHandler.java:253)  
at io.crate.rest.action.SqlHttpHandler.handleSQLRequest(SqlHttpHandler.java:214)  
at io.crate.rest.action.SqlHttpHandler.channelRead0(SqlHttpHandler.java:119)  
at io.crate.rest.action.SqlHttpHandler.channelRead0(SqlHttpHandler.java:84)  
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)  
at org.elasticsearch.http.netty4.pipelining.HttpPipeliningHandler.channelRead(HttpPipeliningHandler.java:68)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

Overall error:  
Error!

SQLActionException[SQLParseException: Invalid property “number\_of\_shards” passed to [ALTER | CREATE] TABLE statement]

SQL: Alter table TABLENAME (number\_of\_shards =5);

Version:  
3.1.5

---

<div class="post-metadata">

**Author:** ![smu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/smu/32/60_2.png) [@smu](https://community.cratedb.com/u/smu)\
**Post date:** [January 24, 2019, 11:21am UTC](https://community.cratedb.com/t/number-of-shards-cannot-be-increased/129/3 "2019-01-24T11:21:16Z")

</div>

Support for changing the `number_of_shards` was introduced by CrateDB version 3.2.0, see [https://crate.io/docs/crate/reference/en/latest/appendices/release-notes/3.2.0.html](https://crate.io/docs/crate/reference/en/latest/appendices/release-notes/3.2.0.html).
