You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "zhaixuepan (JIRA)" <ji...@apache.org> on 2012/09/25 15:41:07 UTC

[jira] [Created] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

zhaixuepan created NUTCH-1473:
---------------------------------

             Summary: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
                 Key: NUTCH-1473
                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
             Project: Nutch
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: zhaixuepan


Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
	... 8 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
	at com.mysql.jdbc.Util.getInstance(Util.java:386)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "Nathan Gass (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489972#comment-13489972 ] 

Nathan Gass commented on NUTCH-1473:
------------------------------------

Yes this happens because of large pages. The appropriate type was TEXT for me, as I got UTF8 issues after indexing to solr with BLOB type. Our mysql server uses character set utf8.

There are other columns where nutch does not ensure the data is small enough (or does not reserve enough space in gora-sql-mapping.xml), which is always a problem at least when using mysql. Should I mention them here or open separate issues?
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "Nathan Gass (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490613#comment-13490613 ] 

Nathan Gass commented on NUTCH-1473:
------------------------------------

I opened a new issue NUTCH-1490.

TEXT seems to be the correct jdbc-type (not length).

I was wrong that this has anything todo with actual inserts of large pages, as this error already happens during table creation (I confused this issue with the issues in NUTCH-1490). It can very well be that the issue is only when using utf8 as the given length is in characters but the maximal length of column types in mysql are in bytes (AFAIK).

                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "zhaixuepan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465608#comment-13465608 ] 

zhaixuepan commented on NUTCH-1473:
-----------------------------------

Hi,Lewis.This error is generated when it is created in the table.Log is "2012-09-28 21:44:24,512 INFO  store.SqlStore - creating schema: webpage",My Database encoding is utf-8.Crawl Chinese HTML page.
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465549#comment-13465549 ] 

Lewis John McGibbney commented on NUTCH-1473:
---------------------------------------------

Hi zhaixuepan. Yes I understand that it needs to be applied directly to the table structure e.g. gora-sql-mapping.xml, however what are your thoughts regarding either TEXT or BLOB for the column length? Also can you explain exactly how you encountered the above stack trace? Was this a large html page?
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489997#comment-13489997 ] 

Lewis John McGibbney commented on NUTCH-1473:
---------------------------------------------

Hi Nathan, this is a really helpful insight and any progress which can be made towards providing a more application ready gora-sql-mapping.xml file is very much welcome. If it is possible for you to open another issue for all issues you encountered with mis/incorrectly configured column definitions then we can patch them all at once. What would also help is if you were able to share the Exception traces you were encountering before reconfiguring the column definitions.

On this issue... It appears that "TEXT" is the most appropriate column length here?  
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "zhaixuepan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465281#comment-13465281 ] 

zhaixuepan commented on NUTCH-1473:
-----------------------------------

Hi,Lewis.Directly in the table structure changes?
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NUTCH-1473) Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead

Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NUTCH-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464867#comment-13464867 ] 

Lewis John McGibbney commented on NUTCH-1473:
---------------------------------------------

Hi zhaixuepan. Do you have any suggestions if either BLOB or TEXT would be more appropriate?
                
> Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> -------------------------------------------------------------------------------
>
>                 Key: NUTCH-1473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: zhaixuepan
>
> Exception in thread "main" org.apache.gora.util.GoraException: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
> 	at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
> 	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:214)
> 	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:62)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:133)
> 	at org.apache.nutch.crawl.Crawler.run(Crawler.java:246)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.nutch.crawl.Crawler.main(Crawler.java:253)
> Caused by: java.io.IOException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:226)
> 	at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:172)
> 	at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
> 	at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
> 	... 8 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Column length too big for column 'text' (max = 21845); use BLOB or TEXT instead
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
> 	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
> 	at org.apache.gora.sql.store.SqlStore.createSchema(SqlStore.java:224)
> 	... 11 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira