AWS Glue CSV file input có bao gồm tiếng Nhật/Trung thì sẽ xảy ra error

AWS Glue CSV file input có bao gồm tiếng Nhật/Trung thì sẽ xảy ra error

Share Everywhere

Table of contents

tôi nghĩ nguyên nhân lỗi là do bạn đang sử dụng vectorized CSV reader không hỗ trợ tiếng Nhật [1]

Hãy kiểm tra xem trong code của bạn có configure như sau không nhé:

glueContext.create_dynamic_frame.from_options(
    frame = datasource1,
    connection_type = "s3", 
    connection_options = {"paths": ["s3://s3path"]}, 
    format = "csv", 
    format_options={
        "optimizePerformance": True, 
        "separator": "," 
        }, 
    transformation_ctx = "datasink2")

nếu có optimizePerformance là True trong code, hoặc trong table properties thì hãy bỏ những ký tự multibytes như tiếng Nhật, tiếng Trung đi vì không support.

Tham khảo thêm

Format Options for ETL Inputs and Outputs in AWS Glue

https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-format.html

It doesn’t support reading CSV files with multiByte characters such as Japanese or Chinese characters

Bạn thấy bài viết này như thế nào?
1 reaction

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Bài viết liên quan

Khám phá FinOps

Khám phá FinOps - công nghệ đám mây

Nhiều doanh nghiệp ngày nay lựa chọn chuyển sang công nghệ đám mây với hi vọng đạt được lợi thế cạnh tranh so với đối thủ nhờ tiềm năng về hiệu quả cao và tiết kiệm chi phí hơn của công nghệ này.
Microservices Roadmap

Microservices Roadmap

- Kafka, RabbitMQ, Amazon SQS: Efficient and reliable message brokers for seamless communication between microservices.
The Data Analyst Roadmap

The Data Analyst Roadmap

**Database Knowledge**: Gain proficiency in working with databases like MySQL, PostgreSQL, or MongoDB.
Architectural patterns in software design

Architectural patterns in software design

Choose the architecture that aligns with your application's unique needs and goals. Each pattern offers a tailored approach to elevate your software system!
Exploring the Technological Marvel Behind Netflix

Exploring the Technological Marvel Behind Netflix

Ever wondered about the tech wizardry that powers your binge-watching adventures on Netflix?